Get File from Folder

🗃

Gets a file or folder by a relative path, starting at a folder you choose. Path The relative path to retrieve, such as “folder/file.txt”

Score
Type
InterActivity
Expertise
5/5
Type
InterActivity
Expertise

Action Information

Parameters

Get file from [Folder] at path [example.txt]

Error If Not Found [Toggle]

Input

Files

Result

Files, Folders

Comments

While the Get File action has existed in Shortcuts since it became an Apple app, the action was built using the publicly-available developer APIs that limited access to its own iCloud Drive folder as it had when the app was Workflow.
Since then, accessing any file across the filesystem has been a common request for Shortcuts users – if it’s an Apple app, why does it have the same limitations?
Now, that day has come, and the Files actions can “get” files from any folder – the action lets you “replace” the Shortcuts folder with any other folder that’s available via the iOS document provider APIs (apps like Dropbox and Google Drive work too).
Plus, users can even use Variables to specific which folder, allowing for scriptable file paths that are generated (or regenerated) in the course of a shortcut running – there’s some fancy possibilities here.

Shortcuts Using This

Works Well With

Details

Type
Interactivity
Expertise Needed
Matthew's Score
5/5
Date Added to Shortcuts
07/06/2021
Identifier
is.workflow.actions.documentpicker.open