Partial Files (BitTorrent Sync)

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

Partial Files (BitTorrent Sync) Mon Jul 07, 2014 1:16 pm • by jontyc93
I'm trying to setup hazel to auto-extract files added with bit-torrent sync.

However i'm just curious, if I add a hazel rule to the folder that is syncing. If the sync is partially complete, I obviously don't want that folder/file to be accounted for until complete.

Is there a way to do this with hazel?
jontyc93
 
Posts: 4
Joined: Mon Jul 07, 2014 1:13 pm

Re: Partial Files (BitTorrent Sync) Mon Jul 07, 2014 2:40 pm • by Mr_Noodle
Not familiar with the software in question but does it have the option to move the completed files elsewhere? If so, have Hazel monitor that folder instead.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Partial Files (BitTorrent Sync) Mon Jul 07, 2014 3:30 pm • by jontyc93
Unfortunately not, no. I'd thought of perhaps doing it on the modified date of the folder, but i'm not sure that'd work.
jontyc93
 
Posts: 4
Joined: Mon Jul 07, 2014 1:13 pm

Re: Partial Files (BitTorrent Sync) Tue Jul 08, 2014 2:18 pm • by Mr_Noodle
It might not. With most downloading programs, it is fairly continuous but with BitTorrent, there can be long gaps where it's not downloading anything. I suggest making a feature request to the BitTorrent Sync devs for a feature like this. Most regular BitTorrent client have it.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Partial Files (BitTorrent Sync) Tue Jul 08, 2014 3:39 pm • by jontyc93
It's not actually a torrent client, it's pretty much a roll-your-own dropbox. I.e. files get synced between machines/servers.

I mean, I presume people would have this issue if using Dropbox with hazel? Dropbox would add files and hazel may move partially complete ones?

How do people get around that?
jontyc93
 
Posts: 4
Joined: Mon Jul 07, 2014 1:13 pm

Re: Partial Files (BitTorrent Sync) Wed Jul 09, 2014 11:00 am • by Mr_Noodle
In those cases you can do a "Date modified is not in the last 5 minutes" or somesuch. Dropbox tends to do a constant flow and usually doesn't have the gaps that you get with BT.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: Partial Files (BitTorrent Sync) Thu Jul 10, 2014 2:45 pm • by jontyc93
Mr_Noodle wrote:In those cases you can do a "Date modified is not in the last 5 minutes" or somesuch. Dropbox tends to do a constant flow and usually doesn't have the gaps that you get with BT.


I tried that, and works fine for Files, however it would appear OSX doesn't update the date-modified of folders when files inside are modified via command line or other non-gui utility.

I'm stuck now. :|
jontyc93
 
Posts: 4
Joined: Mon Jul 07, 2014 1:13 pm

Re: Partial Files (BitTorrent Sync) Fri Jul 11, 2014 2:45 pm • by Mr_Noodle
Check out the rule from this thread: viewtopic.php?f=4&t=1593#p6500

It shows how to detect changes if a file is modified or any of the files underneath it all, by using a nested condition. You can adapt that to your needs in this case.
Mr_Noodle
Site Admin
 
Posts: 11866
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support