Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

Script for a list?

#2
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.
Reply


Messages In This Thread
Script for a list? - by ENQUIRIES - 08-06-2025, 07:35 PM
RE: Script for a list? - by ed - 08-07-2025, 12:27 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)