Author Topic: How to check if file exists on server?  (Read 2568 times)

acronyte

  • Newbie
  • *
  • Thank You
  • -Given: 9
  • -Receive: 0
  • Posts: 46
    • View Profile
How to check if file exists on server?
« on: September 04, 2017, 07:12:40 AM »
How would I got about checking if a file exists on tnet's server? I know I can do this through unity itself, but is there a tnet call or something that can do this?

devomage

  • Sr. Member
  • ****
  • Thank You
  • -Given: 7
  • -Receive: 67
  • Posts: 250
    • View Profile
Re: How to check if file exists on server?
« Reply #1 on: September 04, 2017, 05:19:50 PM »
I would create a custom packet to ensure a desired result. 

TNManager.LoadFile might be an alternative.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to check if file exists on server?
« Reply #2 on: September 06, 2017, 12:56:22 AM »
You can LoadFile on it, and if the result comes back as empty, then the file doesn't exist.