Sign in to follow this  
Bravo79

Is It Possible To Find Out (Programatically) When A Transfer Is Complete?

Recommended Posts

Here is my scenario.

 

I have a desktop computer (CompA)

 

I have a 3TB HDD connected to Raspberry Pi ?

 

I want to transfer files and folders , when they are placed in the shared folder , from CompA to the HDD connected to R-Pi.

CompA(BTsync folder) --> R-Pi HDD(BTsync directory)

 

I then want to free up space on CompA by deleting the files from the shared folder, as soon as the sync is complete.

 

I don't want the files on the HDD connected to the R-Pi be deleted. 

 

What would be the best way to achieve this. 

 

is there a way to find out on the pi as to when a transfer session has completed and then , using a script move the files from the shared directory on the HDD to some other directory?

 

Share this post


Link to post
Share on other sites

@Bravo79,

 

You can use API (see "GetFolderPeers" command). When it shows upload and download values zero - it means it stays in sync with selected peer.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this