Howto User Data

Get Current User Name

The current logon user name could be retrieved by the call:

1
2
3
import filesysobjects.userdata

filesysobjects.userdata.getcurrent_username()

For complete details refer to [API] / [code].

Get HOME Directory

The current logon user home directory could be retrieved by the call:

1
2
3
import filesysobjects.userdata

filesysobjects.userdata.gethome()

For complete details refer to [API] / [code].

Get User HOME Directories

The specific HOME directory of an user could be retrieved by the call:

1
2
3
4
import filesysobjects.userdata

filesysobjects.userdata.getdir_userhome()  # default is current user
filesysobjects.userdata.getdir_userhome('userx')

For complete details refer to [API] / [code].

Get User Data Directories

The specific data directory of an user could be retrieved by the call:

1
2
3
4
import filesysobjects.userdata

filesysobjects.userdata.getdir_userdata()  # default is current user
filesysobjects.userdata.getdir_userdata('userx')

For complete details refer to [API] / [code].

Get User Configuration Directories

The specific configuration directory of an user could be retrieved by the call:

1
2
3
4
import filesysobjects.userdata

filesysobjects.userdata.getdir_userconfigdata()  # default is current user
filesysobjects.userdata.getdir_userconfigdata('userx')

For complete details refer to [API] / [code].

Get User App Configuration Directories

The specific application directory within a user context could be retrieved by the call:

1
2
3
4
import filesysobjects.userdata

filesysobjects.userdata.getdir_userappconfigdata()  # default is current user
filesysobjects.userdata.getdir_userappconfigdata('userx')

For complete details refer to [API] / [code].

Get User App Data Directories

The specific application data within the context of an user could be retrieved by the call:

1
2
3
4
import filesysobjects.userdata

filesysobjects.userdata.getdir_userappdata()  # default is current user
filesysobjects.userdata.getdir_userappdata('appx', 'usery')

For complete details refer to [API] / [code].