Page 1 of 1
Partial Files (BitTorrent Sync)

Posted:
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?
Re: Partial Files (BitTorrent Sync)

Posted:
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.
Re: Partial Files (BitTorrent Sync)

Posted:
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.
Re: Partial Files (BitTorrent Sync)

Posted:
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.
Re: Partial Files (BitTorrent Sync)

Posted:
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?
Re: Partial Files (BitTorrent Sync)

Posted:
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.
Re: Partial Files (BitTorrent Sync)

Posted:
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.

Re: Partial Files (BitTorrent Sync)

Posted:
Fri Jul 11, 2014 2:45 pm
by Mr_Noodle
Check out the rule from this thread:
viewtopic.php?f=4&t=1593#p6500It 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.