Page 1 of 1

check for non existence of file then move other folders

PostPosted: Sat Oct 22, 2016 12:32 pm
by sspeegle
Hi, I have been using Bittorrent Sync (now Resillo sync) with Hazel for a while now... where people use bittorrent sync to "backup" video files one-way to my MAC from a mobile phone/tablet. I have been using Hazel for the last year to check for a file extension (.bts) in the same folder as the files and if it didn't exist I would know that the file is completely uploaded and trigger a move of the folder to a different directory.

Now, Resillo sync uses a temp file in a hidden directory (.sync) that has random named file with a ".!sync" extension. I now need to change the behavior of Hazel to look for any files with that extension in that directory and if there are no files with that extension, I need to run rules on matching folders to move them. I cant seem to wrap my head around the logic to do that (i.e. monitor files in a central directory and if none exist move "other" directories) with video files to a new location. I thought about a shell script that would run and count any file with !sync extension and if return (0) zero count, run the move rule but Im not sure how to make it work. I have posted a screenshot explaining better I hope.
Image
Thanks for any help on this.

Re: check for non existence of file then move other folders

PostPosted: Mon Oct 24, 2016 11:03 am
by Mr_Noodle
I'm afraid there's no good way to do it without a script. Writing that script is a bit beyond the help I can give though. I have to say this is one of the more convoluted mechanisms I've seen an app used to designate incomplete files. If you can find an option in the program to do something more straightforward, I would definitely use that.