‘filesysobjects.userdata’ - Module

The filesysobjects.userdata module provides user related filesystem data.

Module

The filesysobjects.userdata module provides information on user data locations.

Functions

getcurrent_username

filesysobjects.userdata.getcurrent_username()[source]

Gets current user name.

getdir_userappdata

filesysobjects.userdata.getdir_userappdata(appname='', user=None)[source]

Gets data directory for applications.

Args:
appname:

The application name, for default see:

pysourceinfo.fileinfo.getcaller_package_filename()
user:
The user name, default is current.
Returns:
The user configuration directory of current platform.
Raises:
pass-through

getdir_userappconfigdata

filesysobjects.userdata.getdir_userappconfigdata(appname='', user=None)[source]

Gets configuration directory for applications.

Args:
appname:

The application name, for default see:

pysourceinfo.fileinfo.getcaller_package_filename()
user:
The user name, default is current.
Returns:
The user configuration directory of current platform.
Raises:
pass-through

getdir_userconfigdata

filesysobjects.userdata.getdir_userconfigdata(user=None)[source]

Gets configuration data directory for configuration.

Args:
user:
The user name, default is current.
Returns:
The user configuration directory of current platform.
Raises:
pass-through

getdir_userdata

filesysobjects.userdata.getdir_userdata(user=None)[source]

Gets data directory with complete local file path name, eventually drive.

getdir_userhome

filesysobjects.userdata.getdir_userhome(user='')[source]

Gets HOME directory of user, default current user.

gethome

filesysobjects.userdata.gethome()[source]

Gets home directory with complete local file path name, eventually drive.

Exceptions

UserdataException

class filesysobjects.userdata.UserdataException[source]