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:
9.5
10.0
10.1
10.2
10.3
10.4
10.5
11.0
11.1
11.2
Statistic
FMM
Blog
Queries location of user's downloads folder.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Folders | 6.2 | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |
none
Returns path or error.
Query download folder path:
MBS( "Folders.UserDownloads" )
Create folder in downloads:
Set Variable [$folder; Value:MBS( "Folders.UserDownloads" )]
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 download folder:
Set Variable [$folder; Value:MBS( "Folders.UserDowmloads" )]
Set Variable [$path; Value:MBS( "Path.AddPathComponent"; $folder; "test.txt" )]
Created 22nd March 2016, last changed 7th November 2018
Folders.UserDocuments - Folders.UserFonts
Feedback: Report problem or ask question.