Page 1 of 1

Rename files on remote FTP server...

Posted: Thu Apr 21, 2011 4:11 am
by marcosjl
Hi,

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...

Rgds

Re: Rename files on remote FTP server...

Posted: Fri Jun 17, 2011 5:43 pm
by smandadi
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" />
		</ftp>

	</module>

</project>