![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
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! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Confirmed User
Join Date: Mar 2004
Posts: 683
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
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!
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Mar 2004
Posts: 683
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
Quote:
Any other suggestions? |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Industry Role:
Join Date: Jan 2002
Posts: 7,981
|
Umm windows? Ok, then I have no idea.
Good luck ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 | |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
Quote:
![]() Is it complicated for a programer to code something up to give me this report? *how expensive/cheap*? Thanks! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
Bump for some
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Good Old Fat Webmaster
Industry Role:
Join Date: Jul 2002
Location: Boquete, Panamá
Posts: 970
|
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
__________________
Whoever dies with most toys wins. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 | |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Feb 2004
Location: Right next to you....
Posts: 1,148
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 | |
Confirmed User
Industry Role:
Join Date: Aug 2004
Location: Montreal, Canada
Posts: 5,600
|
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! |
|
![]() |
![]() ![]() ![]() ![]() ![]() |