Newsgroups : Borland : borland.public.delphi.internet.winsock : 2006 Sep : TIdFTP equivalent to ForceDirectories?
| Subject: | TIdFTP equivalent to ForceDirectories? |
| Posted by: | "Kevin Killion" (kevinnospam@shsmedia.com) |
| Date: | Thu, 7 Sep 2006 17:29:22 |
Is there any way in TIdFTP to guarantee that a path exists, akin to
Delphi's ForceDirectories function?
Example:
Given a path "clients/acme/2004/june"
Create "clients", "acme", "2004", and "june" as needed
I tried MakeDir, but it doesn't seem to like accepting a whole path.
I could roll-my-own equivalent by testing directories one after another
to see if they exist, and calling TIdFTP.MakeDir one at a time if they
don't. But then again, I don't see any obvious equivalent to Delphi's
"DirectoryExists" either.
Suggestions?
Thanks!
Kevin Killion