This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
tinypy:gui [2013/05/02 16:26] fx [Scanning folders] |
tinypy:gui [2013/05/02 16:26] fx [Manipulating paths] |
||
---|---|---|---|
Line 44: | Line 44: | ||
__dirname__(path)__ | __dirname__(path)__ | ||
+ | |||
Return the dir that leads to path | Return the dir that leads to path | ||
dirname("/c/foo/bar.txt")=>"/c/foo" | dirname("/c/foo/bar.txt")=>"/c/foo" | ||
+ | |||
__basename__(path)__ | __basename__(path)__ | ||
+ | |||
Return the filename only | Return the filename only | ||
dirname("/c/foo/bar.txt")=>"bar.txt" | dirname("/c/foo/bar.txt")=>"bar.txt" |