08-07-2025, 12:27 PM
Thanks for your message — and yes, what you’re after is totally doable with a quick script. If you’re looking to generate a simple list of filenames (just titles, not metadata) from a specific folder on your Synology NAS, here’s a straightforward way to do it using SSH.
Step-by-Step: Generate File List from a Folder
1. Enable SSH on your Synology NAS
Go to Control Panel > Terminal & SNMP, enable SSH, and click Apply.
2. Connect via SSH
From a terminal on your Mac or PC:
ssh adminusername@NAS_IP_ADDRESS
(Replace adminusername and NAS_IP_ADDRESS with your own values.)
3. Navigate to the folder where your files are stored
For example:
cd /volume1/video/movies
4. Run the following command to list all filenames
This will output all files (and folders) in that directory and save them into a text file:
ls -1 > filelist.txt
Or for recursive listing of all files in subfolders:
find . -type f > full_file_list.txt
5. Retrieve the list
You can use File Station or SCP to grab the filelist.txt or full_file_list.txt file back to your computer for use in Excel, lookup tables, or other applications.
Step-by-Step: Generate File List from a Folder
1. Enable SSH on your Synology NAS
Go to Control Panel > Terminal & SNMP, enable SSH, and click Apply.
2. Connect via SSH
From a terminal on your Mac or PC:
ssh adminusername@NAS_IP_ADDRESS
(Replace adminusername and NAS_IP_ADDRESS with your own values.)
3. Navigate to the folder where your files are stored
For example:
cd /volume1/video/movies
4. Run the following command to list all filenames
This will output all files (and folders) in that directory and save them into a text file:
ls -1 > filelist.txt
Or for recursive listing of all files in subfolders:
find . -type f > full_file_list.txt
5. Retrieve the list
You can use File Station or SCP to grab the filelist.txt or full_file_list.txt file back to your computer for use in Excel, lookup tables, or other applications.