Page 1 of 1
Create folders to upload files
Posted: Wed Jun 27, 2007 12:58 pm
by Alvaro Urdaneta
Hi Everybody,
I use icopyfil.prg (fwh\samples) to upload/download files from web but i don't know how to create folders.
Someone has an sample?
Thanks in advance.
Posted: Wed Jun 27, 2007 3:36 pm
by StefanHaupt
Alvaro,
do you mean directories or a folder control ?
Directories can be created with lMkDir (cDir) -> lSuccess.
Posted: Wed Jun 27, 2007 3:50 pm
by Alvaro Urdaneta
Stefan,
I want to create directories in my web site, not in a local disk. I want to upload files from local disk to www. I use tftp.
Regards
Posted: Wed Jun 27, 2007 4:12 pm
by Antonio Linares
Alvaro,
Add this method to Class TFtp:
Code: Select all
METHOD CreateDirectory( cDirName ) INLINE ;
FtpCreateDirectory( ::hFTP, cDirName )
Posted: Wed Jun 27, 2007 5:02 pm
by Alvaro Urdaneta
Antonio,
Thanks, it´s working fine!!!
Ragrds,