Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

whatever61

How to open the last modified folder

Hello all,

I am preparing a script that will download the latest backup to my PC from my SFTP.

I manage to get to the folder with the backups, but there the folder structure is like that:

BACK_17_03_2014
BACK_18_03_2014
BACK_19_03_2014

What I want is to open the LATEST folder (from there I will do "get *.*", that's no problem).

If that's not possible then I want to copy all the files from inside the folders with a specific filemask.
Example inside the folder BACK_17_03_2014, BACK_18_03_2014 and BACK_19_03_2014 there's a file called "xxx.rar", so I want to get all the xxx.rar files.