GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   Computer Geeks & Programers (https://gfy.com/showthread.php?t=355950)

Trixxxia 09-13-2004 07:26 AM

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!

swedguy 09-13-2004 07:33 AM

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.

garett 09-13-2004 07:34 AM

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.

Trixxxia 09-13-2004 07:47 AM

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!

garett 09-13-2004 07:54 AM

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.

Trixxxia 09-13-2004 07:57 AM

Quote:

Originally posted by garett
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.

Hahah ok cool - will look for that then.


Any other suggestions?

swedguy 09-13-2004 07:58 AM

Umm windows? Ok, then I have no idea.

Good luck :)

Trixxxia 09-13-2004 08:04 AM

Quote:

Originally posted by swedguy
Umm windows? Ok, then I have no idea.

Good luck :)

:( I'm on my own?
Is it complicated for a programer to code something up to give me this report? *how expensive/cheap*?

Thanks!

Trixxxia 09-13-2004 09:44 AM

Bump for some :helpme

inabon 09-13-2004 09:50 AM

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

Trixxxia 09-13-2004 09:52 AM

Quote:

Originally posted by inabon
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

Inabon, do you think you can hit me up on ICQ so when I do it-if I have problems I can refer to someone? I'd appreciate it! *If you don't have ICQ, email would help* thanks

etech 09-13-2004 09:56 AM

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.

Trixxxia 09-13-2004 10:01 AM

Quote:

Originally posted by etech
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.

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