equal
deleted
inserted
replaced
16 # along with this program; if not, write to the |
16 # along with this program; if not, write to the |
17 # Free Software Foundation, Inc., |
17 # Free Software Foundation, Inc., |
18 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 # 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 # |
19 # |
20 |
20 |
21 import os.path |
21 import os, os.path |
22 |
22 |
23 import settings |
23 import settings |
24 |
24 |
25 def isImage (fname) : |
25 def isImage (fname) : |
26 """ |
26 """ |
78 return os.path.join(*[part for part in parts if part is not None]) |
78 return os.path.join(*[part for part in parts if part is not None]) |
79 |
79 |
80 def strip_path (path) : |
80 def strip_path (path) : |
81 return path.lstrip('.').lstrip('/') |
81 return path.lstrip('.').lstrip('/') |
82 |
82 |
|
83 def mtime (path) : |
|
84 try : |
|
85 return os.stat(path).st_mtime |
|
86 except OSError : |
|
87 # no such file or directory |
|
88 return None |
|
89 |