Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Can you upload/download entire directories?  (Read 2088 times)

0 Members and 1 Guest are viewing this topic.

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
Can you upload/download entire directories?
« on: August 11, 2011, 04:42:32 pm »
Or, how can I check whether a path represents a directory or a file? (So I could write my own code for downloading directories.)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Can you upload/download entire directories?
« Reply #1 on: August 11, 2011, 04:56:07 pm »
SFML implements no direct way of checking whether an item is a file or a directory. I think the simplest workaround is to call ChangeDirectory: if it works then it's a directory, if not then it's a file.

I can probably add more functions to make this easier (and less ugly).
Laurent Gomila - SFML developer

svrtgujbhk

  • Newbie
  • *
  • Posts: 20
    • View Profile
Can you upload/download entire directories?
« Reply #2 on: August 11, 2011, 04:57:48 pm »
It's not ideal, but it'll do. :) Thanks.

 

anything