Brand new to ScriptFTP today; looks like a winner!
I want to archive a local file to a local folder after it has been been uploaded. I want the folder named after the $time=GETFILETIME variable for that file. Best way to do this?
I want to archive a local file to a local folder after it has been been uploaded. I want the folder named after the $time=GETFILETIME variable for that file. Best way to do this?
I figured it out. Here's what I did:
Code: Select all
Sound correct?#Change to the local C:\foo\bar folder
LOCALCHDIR('C:\foo\bar\')
#Make the $time variable from the file modified time
$time=GETFILETIME(LOCAL,"test.txt")
#I think this is concatenation?
$foldername="C:\foo\bar\archive\".$time."\"
#Create the local directory C:\foo\bar\archive\$time\
LOCALMKDIR($foldername)
Hi,
Yes, it seems to be correct
My apologies for replying so late. I have been receiving many emails lately.
Yes, it seems to be correct
My apologies for replying so late. I have been receiving many emails lately.
liked Script FTP? Try our other product Email Parser