PDA

View Full Version : Automatic file transfer will not skip transfer when folder is empty


rkrupicka
05-21-2014, 03:00 PM
I am a transfer setup to go out an grab a file every 5 minutes. After it get the file it deletes the file from the server. In another 5 minutes it will go check for another file. There might be another file and there might not be another file present to transfer.

I would like to skip the transfer if the file is not present. I have tried going to Option - Filters and in the Skip List tab turning on the Skip Empty folders and Skip 0 Byte Files options. This still did not not solve my problem and the transfer failed. I also tried a Selective transfer to only transfer .csv file extensions hoping it would skip the transfer if it did not find one, but that did not work either.

Here is the session log info:

[2014-05-21 02:14:02 pm] [R] 150 Here comes the directory listing.
[2014-05-21 02:14:02 pm] [R] 226 Directory send OK.
[2014-05-21 02:14:02 pm] [R] List Complete: 254 bytes in 0.00 second (0.2 KB/s)
[2014-05-21 02:14:02 pm] [L] Changed Directory to: /
[2014-05-21 02:14:02 pm] [L] Retrieving file list...
[2014-05-21 02:14:02 pm] [L] List Complete: 0 bytes in 0.17 second (0.0 KB/s)
[2014-05-21 02:14:02 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:03 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:04 pm] [L] /NorrisPPDOutages.csv: File not found!
[2014-05-21 02:14:04 pm] Transfer queue completed
[2014-05-21 02:14:04 pm] Transferred 0 Files (0 bytes) in 4 seconds (0.0 KB/s)
[2014-05-21 02:14:04 pm] 1 File Failed
[2014-05-21 02:14:04 pm] Sending email notifcation..
[2014-05-21 02:14:05 pm] [L] SFTP Connection closed (The file does not exist.)
[2014-05-21 02:14:05 pm] [L] SSH Connection closed
[2014-05-21 02:14:05 pm] [L] Logged off: ftp4.nppd.com (Duration: 5 seconds)
[2014-05-21 02:14:05 pm] [R] QUIT
[2014-05-21 02:14:05 pm] [R] 221 Goodbye.

Any ideas on how to get this to work correctly?

bigstar
05-21-2014, 03:40 PM
This is the expected behavior if the file doesn't exist.

Any failure is re-tried up to retry failed transfer limit, in this case the site to site limit.
This is set via Options > Preferences > Transfer > Retry Failed Transfers

rkrupicka
05-21-2014, 03:51 PM
Is there any way around this?

bigstar
05-21-2014, 08:12 PM
No not in FlashFXP v4.x however you might be able to do something like this using FlashFXP v5.x (beta)

https://oss.azurewebsites.net/images/forum/flashfxp-5-raw-commands.png

In this screenshot I have enqueued some raw commands.

These are new commands just recently introduced so they are still experimental.

To enqueue the raw commands connect to the two desired sites and right click on the file list and from the popup menu select Enqueue > Raw Command

https://oss.azurewebsites.net/images/forum/flashfxp-5-raw-commands-2.png

Now what these command do is this

/browser 1 remote
This ensures that the left side is the remote browser.

/browser 2 remote
This ensures that the right side is the remote browser.

/cd /home/flashfxp/incoming/
This actually connects to Site A and Site B and then changes the remote path to /home/flashfxp/incoming/ on Site A, make sure that the left side is active when enqueuing the command.

/cd /home/flashfxp/new/
Changes the remote path to /home/flashfxp/new/ on Site B, make sure that the right side is active when enqueuing the command.

/activate 1
This will ensure that the left side is active for the following commands.

/select *.csv
This will select any items matching the pattern.

/queue selected
This adds the current selection to the queue to be transferred.

/delete selected
This adds the current selection to the queue to be deleted. This operation will only execute if all previous commands are successful. If for example there are multiple files and one of them fail then this command will not run.

I've attached a sample queue as a reference only, since it wont actually work without changing the sites.

Also as I stated this requires FlashFXP v5 beta, you can download the beta from our website at
Download FlashFXP v5.0 BETA (https://oss.azurewebsites.net/download-beta)

You can have FlashFXP v4 and v5 installed without conflicts, both are completely separate from each other.
Due to many major changes to the data files they purposely use different data folders.

I revised my original reply and fixed a few mistakes and redid the screenshots, I also updated the sample.fqf

bigstar
05-21-2014, 11:02 PM
I revised my original reply and fixed a few mistakes and redid the screenshots, I also updated the sample.fqf

Please take a moment to re-read my previous reply with the corrections.

rkrupicka
05-22-2014, 11:30 AM
I loaded the beta version and tried what you suggested and it work. This is just what I was looking for. Thanks for all your help.

bigstar
05-22-2014, 05:39 PM
Your welcome.

The next v5.0 update will incorporate some minor improvements to this design so that some commands such as /browser and /activate wont be needed, by enqueuing the command on the left or right side and locally or remotely the UI will auto change to match the layout/active side when performing the command.