![]() |
Computer Geeks & Programers
Ok I have another task I need help getting done & I know one of you HAS to know a solution.
I have numerous folders that I need to make sure have at least 40 images and one index page in it. (so 41 files total) Without going into the folder manually & checking the total, is there a program that will check or give me a report of what is included in all these folders? If there was a way to print a list of what's included in each folder, I'd be in heaven, however even if it just lists it, I'm saving alot of time. Anyone have suggestions? Thanks! |
If you just want a list with what's in every folder (from the current folder), do this:
cd /domain/folder find . -type d | xargs ls > list.txt list.txt will look like this... ./porn: gallery1.html gallery2.html index.html main.html ./pornxxx: gallery1.html gallery2.html index.html main.html ./xxxporn: gallery1.html gallery2.html index.html main.html ./pictures: 01.jpg 06.jpg 11.jpg 16.jpg tn01.jpg tn06.jpg tn11.jpg tn16.jpg 02.jpg 07.jpg 12.jpg 17.jpg tn02.jpg tn07.jpg tn12.jpg tn17.jpg 03.jpg 08.jpg 13.jpg 18.jpg tn03.jpg tn08.jpg tn13.jpg tn18.jpg 04.jpg 09.jpg 14.jpg 19.jpg tn04.jpg tn09.jpg tn14.jpg tn19.jpg 05.jpg 10.jpg 15.jpg 20.jpg tn05.jpg tn10.jpg tn15.jpg tn20.jpg I'll play around alittle bit to get the 40 files thing right. |
In the top level folder (the folder with all the other folders) you can do 'find . -print' to show the contents of all folders.
If you want to save the output to a file you can do 'find . -print > file.txt' or you can scroll the output with 'find . print | less'. A coder could still write you a script that would count the files in each folder for you .. but that'll save you some time anyway. |
Is this if it's on the server? Right now it's on my computer. Let me know if I have to upload the 6-7gb of files online first ;) Much appreciated!
|
Yeah we did assume it was on the server lol
I'm not sure how you can do this on windows ... unless you can find a version of 'find' for win32. |
Quote:
Any other suggestions? |
Umm windows? Ok, then I have no idea.
Good luck :) |
Quote:
Is it complicated for a programer to code something up to give me this report? *how expensive/cheap*? Thanks! |
Bump for some :helpme
|
the only think i can think of is setup that content as a site folder and in dreamweaver as a a site. then let dream weaver scan it (mind you it will take a long time)
if all goes well dream weaver should be able to give you an inventory on the assets window. it should even tell you if there are broken links. talking about dreamweaver MX |
Quote:
|
Well i can write a java program that checks this for you. Or a PHP script if its on a web server? hit me up.
|
Quote:
It's not on a server & won't be for awhile as I sort other little quirks with the files. Hitting you up now! |
All times are GMT -7. The time now is 08:40 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123