Jump to content

FTPeek Move File


This topic is 1826 days old. Please don't post here. Open a new topic instead.

Recommended Posts

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? 

 

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

This topic is 1826 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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.