User Tools

Site Tools


tinypy:gui

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
tinypy:gui [2013/04/27 15:41]
fx [Selecting files and folders]
tinypy:gui [2013/05/02 16:26]
fx [Manipulating paths]
Line 40: Line 40:
  will return all .avi files in the folder /​home/​foo/​videos.  will return all .avi files in the folder /​home/​foo/​videos.
  ​Beware this is a function, not attached to gui or adm.  ​Beware this is a function, not attached to gui or adm.
 +
 +==== Manipulating paths  =====
 +
 +__dirname(path)__ ​
 +
 + ​Return the dir that leads to path
 +  dirname("/​c/​foo/​bar.txt"​)=>"/​c/​foo"​
 +
 +
 +__basename(path)__ ​
 +
 + ​Return the filename only
 +  dirname("/​c/​foo/​bar.txt"​)=>"​bar.txt"​
  
 ==== Getting a file size  ===== ==== Getting a file size  =====
tinypy/gui.txt ยท Last modified: 2013/05/02 16:27 by fx