eric6.MicroPython.MicroPythonFileSystemUtilities
Module implementing some file system utility functions.
Global Attributes
Classes
Functions
| decoratedName | Function to decorate the given name according to the given mode. | 
| fstat | Function to get the stat() of file. | 
| isVisible | Function to check, if a filesystem entry is a hidden file or directory. | 
| listdirStat | Function to get a list of directory entries and associated stat() tuples. | 
| mode2string | Function to convert a mode value to a string representation. | 
| mtime2string | Function to convert a time value to a string representation. | 
decoratedName
decoratedName(name, mode, isDir=False)
    Function to decorate the given name according to the given mode.
- name (str)
- 
file or directory name
- mode (int)
- 
mode value
- isDir (bool)
- 
flag indicating that name is a directory
- Returns:
- 
decorated file or directory name
- Return Type:
- 
str
fstat
fstat(filename)
    Function to get the stat() of file.
- filename (str)
- 
name of the file
- Returns:
- 
tuple containing the stat() result
- Return Type:
- 
tuple
isVisible
isVisible(name, showHidden)
    Function to check, if a filesystem entry is a hidden file or directory.
- name (str)
- 
name to be checked
- showHidden (bool)
- 
flag indicating to show hidden files as well
- Returns:
- 
flag indicating a visible filesystem entry
- Return Type:
- 
bool
listdirStat
listdirStat(dirname, showHidden=False)
    Function to get a list of directory entries and associated stat() tuples.
- dirname (str)
- 
name of the directory to list
- showHidden (bool)
- 
flag indicating to show hidden files as well
- Returns:
- 
list of tuples containing the entry name and the associated
        stat() tuple
- Return Type:
- 
list of tuple of (str, tuple)
mode2string
mode2string(mode)
    Function to convert a mode value to a string representation.
- mode (int)
- 
mode value
- Returns:
- 
string representation of the given mode value
- Return Type:
- 
str
mtime2string
mtime2string(mtime)
    Function to convert a time value to a string representation.
- mtime (int)
- 
time value
- Returns:
- 
string representation of the given time
- Return Type:
- 
str