This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
tinypy:gui [2013/05/02 16:26] fx [Manipulating paths] |
tinypy:gui [2013/05/02 16:27] (current) fx [Manipulating paths] |
||
|---|---|---|---|
| Line 43: | Line 43: | ||
| ==== Manipulating paths ===== | ==== Manipulating paths ===== | ||
| - | __dirname__(path)__ | + | __dirname(path)__ |
| Return the dir that leads to path | Return the dir that leads to path | ||
| Line 49: | Line 49: | ||
| - | __basename__(path)__ | + | __basename(path)__ |
| Return the filename only | Return the filename only | ||
| - | dirname("/c/foo/bar.txt")=>"bar.txt" | + | basename("/c/foo/bar.txt")=>"bar.txt" |
| ==== Getting a file size ===== | ==== Getting a file size ===== | ||