’'’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:
$HOME/storage
is created.$HOME/storage
folder are symlinks to different storage folders:** ~/storage/shared
The root of the shared storage between all apps,
** ~/storage/downloads
The standard directory for downloads from e.g. the system browser,
** ~/storage/dcim
The traditional location for pictures and videos when mounting the device as a camera,
** ~/storage/pictures
Standard directory in which to place pictures that are available to the user,
** ~/storage/music
Standard directory in which to place any audio files that should be in the regular list of music for the user,
** ~/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).