-
Notifications
You must be signed in to change notification settings - Fork 189
Paths API
IgorTimofeev edited this page Jan 9, 2019
·
2 revisions
This library provides most commonly used MineOS system and user paths. For example, it's very useful to save something on your desktop directory without any special knowledge of program locations.
Contents |
---|
System paths |
User paths |
Library methods |
paths.getUser |
paths.updateUser |
Key | Value | Description |
---|---|---|
paths.system.libraries | /Libraries/ | Path to system libraries directory |
paths.system.localizations | /Localizations/ | Path to system localizations directory |
paths.system.users | /Users/ | Path to system users directory |
paths.system.icons | /Icons/ | Path to system icons like Folder.pic , Lua.pic or Text.pic directory |
paths.system.extensions | /Extensions/ | Path to system file extensions associations |
paths.system.mounts | /Mounts/ | Path to system mounted volumes |
paths.system.temporary | /Temporary/ | Path to system temporary directory |
paths.system.pictures | /Pictures/ | Path to system pictures directory |
paths.system.screensavers | /Screensavers/ | Path to system screensavers directory |
paths.system.applications | /Applications/ | Path to system applications directory |
paths.system.applicationSample | /Applications/Sample.app/ | Path to system Sample application |
paths.system.applicationAppMarket | /Applications/App Market.app/Main.lua | Path to system App Market application |
paths.system.applicationMineCodeIDE | /Applications/MineCode IDE.app/Main.lua | Path to system MineCode IDE application |
paths.system.applicationFinder | /Applications/Finder.app/Main.lua | Path to system Finder application |
paths.system.applicationPictureEdit | /Applications/Picture Edit.app/Main.lua | Path to system Picture Edit application |
paths.system.applicationSettings | /Applications/Settings.app/Main.lua | Path to system Settings application |
Key | Value | Description |
---|---|---|
paths.user.home | "/Users/%USER%/" | Path to current user home directory |
paths.user.properties | "/Users/%USER%/Properties.cfg" | Path to current user properties file |
paths.user.applicationData | "/Users/%USER%/Application data/" | Path to current user application data |
paths.user.libraries | "/Users/%USER%/Libraries/" | Path to current user libraries directory |
paths.user.applications | "/Users/%USER%/Applications/" | Path to current user applications directory |
paths.user.desktop | "/Users/%USER%/Desktop/" | Path to current user dekstop directory |
paths.user.pictures | "/Users/%USER%/Pictures/" | Path to current user pictures directory |
paths.user.screensavers | "/Users/%USER%/Screensavers/" | Path to current user screensavers directory |
paths.user.trash | "/Users/%USER%/Trash/" | Path to current user trash directory |
Returns user paths table created based on given userName
.
Updates current user table in paths.user by give userName
.