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.5
11.0
11.1
11.2
11.3
11.4
11.5
12.0
12.1
12.2
Statistic
FMM
Blog
Folders.UserDocuments
Queries path to user's document folder.
Component | Version | macOS | Windows | Linux | Server | iOS SDK | License |
Folders | 4.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | Free |
Parameters
none
Result
Returns path or error.
Description
Queries path to user's document folder.This is a native path. You can use Path.NativePathToFileMakerPath if you need to use path in a script step.
Version 8.5 and newer return the server documents folder for scripts running on server by internally calling Get(DocumentsPath).
Examples
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" )]
See also
- CURL.SetOptionCAInfo
- Files.CreateDirectory
- Files.LaunchFile
- Folders.SharedDocuments
- Folders.UserDownloads
- Folders.UserFonts
- Path.AddPathComponent
- Path.NativePathToFileMakerPath
- SharingPanel.AddFilePath
- SharingPanel.AddImageFile
Release notes
- Version 8.5
- Changed Folders.UserDocuments to return FileMaker documents folder on server.
- Version 7.5
- Implemented Folders.UserDocuments for Linux to point to FileMaker's document folder.
Example Databases
- AVRecorder/AVRecorder iOS Test
- CURL/CURL with certificates included with FileMaker
- Win Only/Snippets for Windows
Blog Entries
- Use root certificates included with FileMaker
- MBS FileMaker Plugin, version 8.5pr2
- MBS FileMaker Plugin, version 7.5pr3
FileMaker Magazin
Created 18th August 2014, last changed 6th November 2020
Folders.UserDesktop - Folders.UserDownloads
Feedback: Report problem or ask question.
