Simple folder list generator

Introduce yourself to us and other members here, or share your own product reviews, suggestions, and tips and tricks of using QNAP products.
Post Reply
moxley
Starting out
Posts: 18
Joined: Mon Jan 07, 2019 12:34 pm

Simple folder list generator

Post by moxley »

I have a TS677 and a TS432.

I love them both, but primarily the 677 and primarily use my TS677 as a large volume media server and archive.

I need a way to quickly and easily generate folder lists; or folder lists and file lists; ; ideally some sort of txt delimited or CSV file. I know this can be done via scripting, but given how tightly I have locked down my units that's a pain to for me to have to do every time I want to generate a list..

I am hoping for a feature in one of the apps to do this, but in the meantime if anyone has a script or workaround to share it would be greatly appreciated.
User avatar
dolbyman
Guru
Posts: 35005
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Simple folder list generator

Post by dolbyman »

if you have the share in question mounted on windows .. just open a command prompt, navigate to the folder and do

Code: Select all

dir /B /S > Listed_Folders.txt
or

Code: Select all

 dir /A:D /B >Listed_Folders_and_Files.txt 
moxley
Starting out
Posts: 18
Joined: Mon Jan 07, 2019 12:34 pm

Re: Simple folder list generator

Post by moxley »

Thanks; I have done that and used other methods to generate a list from within a client - but I was hoping to find a way to do it quick and easy on the NAS.

With how many files people generally store on a NAS, I think it would be a useful feature to have it as a right click context option in QFile or something like that: "Export File List." etc.
User avatar
dolbyman
Guru
Posts: 35005
Joined: Sat Feb 12, 2011 2:11 am
Location: Vancouver BC , Canada

Re: Simple folder list generator

Post by dolbyman »

you can do it on the NAS as well, just in linux terms

Navigate to the share in question and do

Code: Select all

ls -d > directory_names.txt

Code: Select all

ls -r > directories_and filenames.txt
there is probably many more flags you can use..

The community can not add anything to QNAP apps (e.g. file station) and QNAP does not come here ..
User avatar
Moogle Stiltzkin
Guru
Posts: 11448
Joined: Thu Dec 04, 2008 12:21 am
Location: Around the world....
Contact:

Re: Simple folder list generator

Post by Moogle Stiltzkin »

or if ur a windows user like me u can run an app that generates these types of lists
https://www.raymond.cc/blog/print-all-f ... r-printer/
NAS
[Main Server] QNAP TS-877 (QTS) w. 4tb [ 3x HGST Deskstar NAS & 1x WD RED NAS ] EXT4 Raid5 & 2 x m.2 SATA Samsung 850 Evo raid1 +16gb ddr4 Crucial+ QWA-AC2600 wireless+QXP PCIE
[Backup] QNAP TS-653A (Truenas Core) w. 4x 2TB Samsung F3 (HD203WI) RaidZ1 ZFS + 8gb ddr3 Crucial
[^] QNAP TL-D400S 2x 4TB WD Red Nas (WD40EFRX) 2x 4TB Seagate Ironwolf, Raid5
[^] QNAP TS-509 Pro w. 4x 1TB WD RE3 (WD1002FBYS) EXT4 Raid5
[^] QNAP TS-253D (Truenas Scale)
[Mobile NAS] TBS-453DX w. 2x Crucial MX500 500gb EXT4 raid1

Network
Qotom Pfsense|100mbps FTTH | Win11, Ryzen 5600X Desktop (1x2tb Crucial P50 Plus M.2 SSD, 1x 8tb seagate Ironwolf,1x 4tb HGST Ultrastar 7K4000)


Resources
[Review] Moogle's QNAP experience
[Review] Moogle's TS-877 review
https://www.patreon.com/mooglestiltzkin
Post Reply

Return to “Users' Corner”