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()
|
Get HOME Directory¶
The current logon user home directory could be retrieved by the call:
1 2 3 | import filesysobjects.userdata
filesysobjects.userdata.gethome()
|
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')
|
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')
|
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')
|
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')
|
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')
|