Topics
All
MacOS
(Only)
Windows
(Only)
Linux
(Only, Not)
iOS
(Only, Not)
Components
Crossplatform Mac & Win
Server
Client
Old
Deprecated
Guides
Examples
Videos
New in version:
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
11.3
11.4
Statistic
FMM
Blog
Queries path to user's document folder.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Folders | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
none
Returns path or error.
Queries path:
MBS( "Folders.UserDocuments" )
Create folder in documents:
Set Variable [$folder; Value:MBS( "Folders.UserDocuments" )]
If [IsEmpty(Container Export::Name)]
Set Field [Container Export::Name; "Record " & Get(RecordID)]
End If
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; Container Export::Name )]
Set Variable [$r; Value:MBS("Files.CreateDirectory"; $path)]
Get file in documents folder:
Set Variable [$folder; Value:MBS( "Folders.UserDocuments" )]
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; "test.txt" )]
Created 18th August 2014, last changed 6th November 2020
Folders.UserDesktop - Folders.UserDownloads
Feedback: Report problem or ask question.