'''It is necessary to grant storage permission for Termux on Android 6 and higher. Use 'Settings>Apps>Termux>Permissions>Storage' and set to true.
Execute termux-setup-storage
(run [[apt]] update && [[apt]] upgrade
to make sure that this tool is available) to ensure:
- That permission to shared storage is granted to Termux when running on Android 6.0 or later,
- That an app-private folder on external storage is created (if external storage exists),
- That a folder
$HOME/storage
is created. - The contents of the created
$HOME/storage
folder are symlinks to different storage folders:
**
The root of the shared storage between all apps,
** /storage/shared/storage/downloads
The standard directory for downloads from e.g. the system browser,
**
The traditional location for pictures and videos when mounting the device as a camera,
** /storage/dcim/storage/pictures
Standard directory in which to place pictures that are available to the user,
**
Standard directory in which to place any audio files that should be in the regular list of music for the user,
** /storage/music/storage/movies
Standard directory in which to place movies that are available to the user,
** ~/storage/external
Symlink to a Termux-private folder on external storage (only if external storage is available).