Matching directories
Posted: 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".
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".