Package moul :: Package file :: Module utils
[hide private]
[frames] | no frames]

Module utils



misc utils functions

Functions [hide private]
  fileModTime(path, format=None)
Get modification time of file
  fileSize(path)
Get size of file

Variables [hide private]
  __author__ = 'Christian Heimes'
  __version__ = '$Id: kiimage.py 129 2007-02-03 18:41:23Z tiran $'
  __revision__ = '$Revision: 129 $'
  absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0...

Function Details [hide private]

fileModTime(path, format=None)

 
Get modification time of file
Parameters:
  • path (string) - path to file or directory
  • format (str or None for time struct) - strftime string ("%Y%m%d_%H%M")
Returns:
str or time struct

fileSize(path)

 
Get size of file
Parameters:
  • path (string) - path to file

Variables Details [hide private]

__author__

None
Value:
'Christian Heimes'                                                     
      

__version__

None
Value:
'$Id: kiimage.py 129 2007-02-03 18:41:23Z tiran $'                     
      

__revision__

None
Value:
'$Revision: 129 $'                                                     
      

absolute_import

None
Value:
_Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)