search for: parent_directory

Displaying 2 results from an estimated 2 matches for "parent_directory".

2009 Nov 06
0
Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?
...t;>> For example, /a/b/c/d is in /a its sub-directory (recursively). Could >>> somebody let me know if such function is available somewhere? >> >> Couldn't you just canonicalize the paths using os.path.abspath() and >> friends and then do subdirectory.startswith(parent_directory) [as >> strings]? > > Beware of directories starting with the same letters. > I'd canonicalize, split the strings on os.sep, and compare the resulting > lists up to the shortest one. Just to add one more comment. There are other corner cases where there is a symbolic link in...
2005 Nov 09
0
mozilla and roming profiles... THE SOLUTION
...n ( salted ) ================================ Methode or making standard config ================================ Configuration is in prefs.js This can be overrulled by optional file user.js You can put the unsalted.slt in a loginscript for example Example: * user_pref("browser.cache.disk.parent_directory", "t:\\temp"); (watch the dubble backslashes) the path is not allowed to contain eviroment variable ( %username% ) ================================ Cache from roaming profile (policy) ================================ Method to let the cache in the profile dire Solution cach not...