Ocean West Posted April 24, 2019 Posted April 24, 2019 I don't see a function to move file from FTP root to a sub folder and create directories on the fly (if they don't exist) - is this something that is done with RENAME or would come kind of execute command be needed?
joshua-rivers-digital Posted April 25, 2019 Posted April 25, 2019 So it looks like the FTPeek_Rename function requires that the "to" file path be the same as the "from" file path, so it won't have the ability to create directories on the fly. We do currently have a feature request for the same type of functionality, so we are currently looking into adding that. Please feel free to check back on occasion for that functionality but I will also keep you updated when we are able to determine if that is a possibility. Thank you! Joshua
Ocean West Posted April 25, 2019 Author Posted April 25, 2019 So i was able to move a file from /root/filename.txt to /root/fmp/20190425/filename.txt the /fmp/ directory is known, and each pass I create the folder in the directory it seems to create the directory but never returns a 1 When using function as script step for FTPeek_Rename i don't see any way to trap the result of the function. As it never returns 1 on success even though it succeeded. it appears that rename only works if your change directory to (in my case) /root/fmp/ i am able to create and move from root to destination folder
Recommended Posts
This topic is 2095 days old. Please don't post here. Open a new topic instead.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now