Rename files on remote FTP server...

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.
2 posts Page 1 of 1


Posts: 5
Joined: Thu Oct 07, 2010 10:54 am

Post by marcosjl » Thu Apr 21, 2011 4:11 am

I'm implementing a GADirector project that will basically send files to a remote FTP server, where a process is constantly polling for new files, and then handles them.

As the FTP server does not implement exclusive file locking or checksum functionnality, I'm trying to write the following:
- upload files with a '.' prefix (so they will not be listed by 'ls' command on remote site)
- rename the remote files to suppress the leading dot...

I'm trying to use the FTP rename task, but i'm struggling on the correct parameters syntax to rename the whole fileset of dot-prefixed files...

Any help or hint apreciated...



Posts: 17
Joined: Mon Jun 14, 2010 3:58 pm

Post by smandadi » Fri Jun 17, 2011 5:43 pm
Code: Select all
<project name="RenameFiles on FTP" mainModule="Main" version="1.0">

	<module name="Main">

		<ftp version="1.0">
			<rename searchPattern="\.(.*)" patternType="regex" replaceWith="$1" />


2 posts Page 1 of 1