Package Editra :: Package src :: Package eclib :: Module infodlg
[hide private]

Module infodlg

source code

FileInfo.py

Dialog for displaying file information.


Author: Cody Precord <cprecord@editra.org>

Classes [hide private]
  FileInfoDlg
Dialog for displaying information about a file
Functions [hide private]
 
CalcSize(bits)
Calculate the best display version of the size of a given file 1024 = 1KB, 1024KB = 1MB, ...
source code
 
GetFileType(fname)
Get what the type of the file is
source code
Variables [hide private]
  __svnid__ = '$Id: infodlg.py 57345 2008-12-14 23:47:52Z CJP $'
  __revision__ = '$Revision: 57345 $'
  PERM_MAP = {'0': '---', '1': '--x', '2': '-w-', '3': '-wx', '4...
Function Details [hide private]

CalcSize(bits)

source code 

Calculate the best display version of the size of a given file 1024 = 1KB, 1024KB = 1MB, ...

Parameters:
  • bits - size of file returned by stat
Returns:
formatted string representation of value

GetFileType(fname)

source code 

Get what the type of the file is

Parameters:
  • fname - file path

Variables Details [hide private]

PERM_MAP

Value:
{'0': '---',
 '1': '--x',
 '2': '-w-',
 '3': '-wx',
 '4': 'r--',
 '5': 'r-x',
 '6': 'rw-',
 '7': 'rwx'}