Folders.UserDownloads
---------------------

Queries location of user's downloads folder.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Folders](component_Folders.md) | [6.2](newinversion62.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ✅ Yes |

MBS( "Folders.UserDownloads" ) ### Parameters

none

### Result

Returns path or error.

### Description

Queries location of user's downloads folder.  
This is a native path. You can use [Path.NativePathToFileMakerPath](PathNativePathToFileMakerPath.md) if you need to use path in a script step.  
e.g. C:\\Users\\test\\Downloads on Windows or /Users/test/Downloads on Mac.  
### Examples

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 " &amp; Get(RecordID)\]  
End If  
Set Variable \[$path ; Value:MBS ( "[Path.AddPathComponent](PathAddPathComponent.md)"; $folder ; Container Export::Name )\]  
Set Variable \[$r ; Value:MBS ("[Files.CreateDirectory](FilesCreateDirectory.md)"; $path )\]  
Get file in download folder:

 Set Variable \[$folder ; Value:MBS ( "Folders.UserDownloads" )\]  
Set Variable \[$path ; Value:MBS ( "[Path.AddPathComponent](PathAddPathComponent.md)"; $folder ; "test.txt" )\]  
### See also

- [Files.CreateDirectory](FilesCreateDirectory.md)
- [Folders.UserDocuments](FoldersUserDocuments.md)
- [Path.AddPathComponent](PathAddPathComponent.md)
- [Path.NativePathToFileMakerPath](PathNativePathToFileMakerPath.md)

### Release notes

- **Version 14.0**
    - Enabled [Folders.UserDownloads](https://www.mbsplugins.eu/FoldersUserDownloads.shtml) to work in iOS.

### Blog Entries

- [MBS FileMaker Plugin, version 13.6pr1](https://www.mbsplugins.de/archive/2023-12-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 6.2pr2](https://www.mbsplugins.de/archive/2016-03-29/MBS_FileMaker_Plugin_version_6/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 22nd March 2016 , last changed 21st November 2023

  
[Folders.UserDocuments](FoldersUserDocuments.md) - [Folders.UserFonts](FoldersUserFonts.md)

[HTML Version](FoldersUserDownloads.shtml)