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
"cache"Cache directory for temporary storage on primary external storage
"primary"Root directory of primary external storage
"sdcard"Root directory of primary external storage, deprecated use "primary"
"internal"Directory unique to the flow on primary external storage unique, may be lost when uninstalled
"external"Directory unique to Automate on primary external storage, may be lost when uninstalled
"alarms"Standard directory in which to place any audio files that should be in the list of alarms
"dcim"Traditional location for pictures and videos when mounting the device as a camera
"documents"Standard directory in which to place documents that have been created by the user
"downloads"Standard directory in which to place files that have been downloaded by the user
"movies"Standard directory in which to place movies that are available to the user
"notification"Standard directory in which to place any audio files that should be in the list of notifications
"pictures"Standard directory in which to place pictures that are available to the user
"podcasts"Standard directory in which to place any audio files that should be in the list of podcasts
"ringtones"Standard directory in which to place any audio files that should be in the list of ringtones

Parameters

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

Returns

  • the path to the directory of type on external storage.
Note! This documentation can also be found in the Help & feedback menu of the app.