Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Hi There,

I am trying to automate a download of a text file that is sitting on an ftp site.

The file has a file name which looks something like this "Filename_Date_Time_.csv" eg "Filename_20111107_155324_.csv"

The problem is for ever new file there is a new time stamp and I am not able to automate the download as I never know the full name of my file. I have no problem scheduling the download from a file that I know the full name of. (the company I am doing the downloads from won't remove the time stamp from within the file name) What I am trying to do is download the file only knowing the files prefix.

Is there a way I can download the file just knowing the first two values i.e. the file name and the date of the file... The time will always be different.

I would like to download the file with todays date (FTP_DownloadFile), then remove it off the server (FTP_DeleteFile), then check if there are any other for today?

Any suggestions would be greatly appreciated.

Thanks,

Jake

When faced with a similar problem, I used their FTPeek_GetFileList ( { remoteDir } ) to read the contents into a $var and then looped and processed.

I used their FTPeek_GetFileList ( { remoteDir } ) to read the contents into a $var and then looped and processed

This is exactly right, FTPeek_GetFileList returns the files in the directory in the alphabetical order, so you can look for the last file matches the prefix you're looking for.

  • Author

Thanks guys, this works great!

Create an account or sign in to comment

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.