Automate

Automate

Make your phone or tablet smarter with automation

Get it on Google Play

storage

text storage(type, path)

Returns the directory of type on external storage with the path appended.

If the path is absolute (start with a /) it will be returned instead of the storage directory.

Note! The returned directory may not exist, always use the File make directory block to create it first.

TypeDescription
"alarms"Standard directory in which to place audio files selectable as an alarm sound
"audiobooks"Standard directory in which to place audio files listed as audiobooks, not regular music (Android 10+)
"cache"Cache directory for temporary storage on primary external storage
"dcim"Traditional location for pictures and videos when mounting the device as a camera
"documents"Standard directory in which to place documents created by the user (Android 4.4+)
"downloads"Standard directory in which to place files downloaded by the user
"external"Directory unique to Automate on primary external storage, may be lost when uninstalled
"internal"Directory unique to the flow on primary external storage, may be lost when uninstalled
"movies"Standard directory in which to place movies that are available to the user
"music"Standard directory in which to place audio files listed as regular music
"notifications"Standard directory in which to place audio files selectable as a notification sound
"pictures"Standard directory in which to place pictures that are available to the user
"podcasts"Standard directory in which to place audio files listed as podcasts, not regular music
"primary"Root directory of primary external storage
"ringtones"Standard directory in which to place audio files selectable as a ringtone
"screenshots"Standard directory in which to place screenshots taken by the user, typically as a secondary directory under "pictures" (Android 10+)
"sdcard"Deprecated, use "primary"
"recordings"Standard directory in which to place audio files listed as voice recordings, not regular music (Android 12+)

Parameters

  1. type — type of storage directory, default is "primary"
  2. path — optional path appended to the storage directory.

Returns

  • the path to the directory of type on external storage.
Note! This documentation is also accessible within the app from Help & feedback menu.