Go Back   FlashFXP Forums > >

General Discussion Need help? Have a problem? Let us help you. Bug reports and feature requests should be made using the Bug Tracker or Feature Tracker

Closed Thread
 
Thread Tools Rate Thread Display Modes
Old 05-21-2014, 03:00 PM   #1
rkrupicka
Junior Member
FlashFXP Registered User
 
Join Date: May 2014
Posts: 3
Default Automatic file transfer will not skip transfer when folder is empty

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?
rkrupicka is offline  
Old 05-21-2014, 03:40 PM   #2
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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
bigstar is offline  
Old 05-21-2014, 03:51 PM   #3
rkrupicka
Junior Member
FlashFXP Registered User
 
Join Date: May 2014
Posts: 3
Default

Is there any way around this?
rkrupicka is offline  
Old 05-21-2014, 08:12 PM   #4
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

No not in FlashFXP v4.x however you might be able to do something like this using FlashFXP v5.x (beta)



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



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

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
Attached Files
File Type: fqf sample.fqf (659 Bytes, 1 views)

Last edited by bigstar; 05-21-2014 at 11:05 PM.
bigstar is offline  
Old 05-21-2014, 11:02 PM   #5
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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.
bigstar is offline  
Old 05-22-2014, 11:30 AM   #6
rkrupicka
Junior Member
FlashFXP Registered User
 
Join Date: May 2014
Posts: 3
Default

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.
rkrupicka is offline  
Old 05-22-2014, 05:39 PM   #7
bigstar
FlashFXP Developer
FlashFXP Administrator
ioFTPD Beta Tester
 
bigstar's Avatar
 
Join Date: Oct 2001
Posts: 8,012
Default

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.
bigstar is offline  
Closed Thread

Tags
file, pm], sftp, [2014-05-21, [l]


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 11:53 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)