Matching directories

Post your new features ideas and suggestions here.

Matching directories

Postby calvini » Tue May 18, 2010 11:14 am

I searched a while but did't find anything appropriate - Is there a possibility to do something like the following:

Having a folder (users directory on windows), I want to compare only some subfolders, but these for every containing folder e.g. compare "/user1/pictures", "/user1/documents", "/user1/music", "/user2/pictures", "/user2/documents", "/user2/music" and so on. Currently I have to build this explicitely for every user, as "/*/pictures" will also match something like "/user1/foo/bar/pictures". Is there an option to do something like this without having a mask for every user? Is the depth-limit usable for this (the whole path can have any possible depth, only the depth of the "*" should be delimited)?

If not, how about some kind of placeholder identifying how much folders it replaces, e.g. "*:1" means one folder, "*:3" means three folders and "*:1,4" means one up to four folders. Then "/*:1/pictures" matches "/foo/pictures" and "/bar/pictures", but not "/foo/bar/pictures".
calvini
 
Posts: 70
Joined: Thu Aug 16, 2007 10:09 am

Re: Matching directories

Postby grigsoft » Wed May 19, 2010 6:34 am

Sorry, maybe I'm missing your point. You can just set folder filters to "pictures; documents; music" and app should show you all such folders in all available users. This however will also match user\temp\pictures, which you do not want? So you need some way to limit folder depth when rule is applied, so it will match user\pictures\, but not user\temp\pictures ? That's interesting idea, I can try to implement your syntax, thank you!
grigsoft
Site Admin
 
Posts: 1661
Joined: Tue Sep 23, 2003 7:37 pm

Re: Matching directories

Postby calvini » Wed May 19, 2010 6:50 am

That's exactly what I meant. You can filter for a folder-name in any position, but you can't for a folder-name in a special position.

Is there an explanation for the depth-limit-feature - how (and for what) can I use it?
calvini
 
Posts: 70
Joined: Thu Aug 16, 2007 10:09 am

Re: Matching directories

Postby grigsoft » Wed May 19, 2010 7:02 am

I guess there is no explanation yet - but it just stop listing files deeper then specified.
grigsoft
Site Admin
 
Posts: 1661
Joined: Tue Sep 23, 2003 7:37 pm

Re: Matching directories

Postby calvini » Wed May 19, 2010 7:26 am

Okay - so it is a simpler version of the syntax I suggested. With that you could possibly write "/foo/bar/*:9" to have a depth-limit of 11 (for the whole path). Therefore syntax-definition should be:

  • If there is no '*' at the end of a mask, a '*' is added automatically.
  • A simple '*' will match any folderdepth, thus making a mask having no depth limit.
  • A folderdepth-limited '*:i' will match exactly i folders.
  • A folderdepth-limited '*:i,j' will match at minimum i and at maximum j folders.
  • To have a mask with a depth limit you have to append "*:i" and must not have any simple '*' in the mask.
  • Having a mask with a depth limit, pathes with more than the allowed number of folders in it will not be synchronized.
  • To match exactly one path (and no subfolders) you have to append "*:0".
Or do you think this is too complicated?
calvini
 
Posts: 70
Joined: Thu Aug 16, 2007 10:09 am

Re: Matching directories

Postby calvini » Wed May 19, 2010 10:02 pm

Maybe I'm the only one having complicated sychronizings ;) - but another great thing would be, if one could set a '-' resp. '+' infront of a foldermask to specify it as excluding resp. including mask. Having this, sometimes I could use one session to store a job instead of 5 or more. Could be handled by a fourth option "mixed" in the filter-dialog.
calvini
 
Posts: 70
Joined: Thu Aug 16, 2007 10:09 am

Re: Matching directories

Postby grigsoft » Thu May 20, 2010 3:34 pm

Yes, this might be good way to combine filters. will try to add this.
grigsoft
Site Admin
 
Posts: 1661
Joined: Tue Sep 23, 2003 7:37 pm

Re: Matching directories

Postby Nicole34 » Mon Aug 23, 2010 12:38 am

hi...
Thank you for your post here it helps me a lot...,specially you su8ggestions regarding to the topic...
Thanks again and keep up the good work...
Cheers...
best way to get rid of acne
Nicole34
 
Posts: 1
Joined: Mon Aug 23, 2010 12:34 am


Return to Synchronize It! : Suggestions

Who is online

Users browsing this forum: No registered users and 1 guest