Jump to content

Folder Sync Folder Structure


Recommended Posts

alchemist__
Posted

Is there any way to change the structure of folders and file naming from folder sync ?

 

The auto conversion and copy to folder is working great - but I would like to change the structure of the folders for TV Sync -

 

It current creates   /Show/Season/Episode name/File - I would like to stop creating the per episode folders and just put all the files in the season folder - any way to do this ?

 

 

Posted

There currently are no settings for this but it's a good idea to make that change in the future. thanks.

alchemist__
Posted

Thanks Luke -

Here is a little code to hardlink the files up one directory for anyone googling - this does not take any more space on the filesystem - but the files will be in both places -

It is a little convoluted so that it works in busybox which is my target device shell - it could probably be refactored. You can run this after every sync.

mindepth is assuming Show > Season > Episode > - files at 4th level - it is not related to find path - this prevents the find linking all the way up the parent tree on subsequent runs.

find /mnt/sync/TV/ -mindepth 4 -iname *.mp4 -exec sh -c 'ln "{}" "$(dirname "$(dirname "{}")")/$(basename "{}" )"' \;

 

Posted

Thanks for the info.

  • 4 weeks later...
tobedeleted
Posted

I'd like to have an option to modify the folder structure, too. For me the predefined hierarchy makes FolderSync completely unusable. E.g. I want to upload home videos to a webspace, but the logic in which the folders a created there is not fitting for the purpose. 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...