Skip to content

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.
  • marcosjl Offline
  • Posts: 5
  • Joined: Thu Oct 07, 2010 10:54 am

Rename files on remote FTP server...

Post 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
  • smandadi Offline
  • Posts: 17
  • Joined: Mon Jun 14, 2010 3:58 pm

Re: Rename files on remote FTP server...

Post 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>
Post Reply