mirror of
https://github.com/IgorTimofeev/MineOS.git
synced 2025-12-20 11:09:21 +01:00
Clone
This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 |
System paths
| 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 |
User paths
| 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 |
Library methods
paths.getUser(string userName): table userPaths
Returns user paths table created based on given userName.
paths.updateUser(string userName)
Updates current user table in paths.user by give userName.