Computer Geeks & Programers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trixxxia
    Confirmed User
    • Aug 2004
    • 5600

    #1

    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
    Confirmed User
    • Jan 2002
    • 7981

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

    Comment

    • garett
      Confirmed User
      • Mar 2004
      • 683

      #3
      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.

      Comment

      • Trixxxia
        Confirmed User
        • Aug 2004
        • 5600

        #4
        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!

        Comment

        • garett
          Confirmed User
          • Mar 2004
          • 683

          #5
          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.

          Comment

          • Trixxxia
            Confirmed User
            • Aug 2004
            • 5600

            #6
            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?

            Comment

            • swedguy
              Confirmed User
              • Jan 2002
              • 7981

              #7
              Umm windows? Ok, then I have no idea.

              Good luck

              Comment

              • Trixxxia
                Confirmed User
                • Aug 2004
                • 5600

                #8
                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!

                Comment

                • Trixxxia
                  Confirmed User
                  • Aug 2004
                  • 5600

                  #9
                  Bump for some

                  Comment

                  • inabon
                    Good Old Fat Webmaster
                    • Jul 2002
                    • 970

                    #10
                    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.

                    Comment

                    • Trixxxia
                      Confirmed User
                      • Aug 2004
                      • 5600

                      #11
                      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

                      Comment

                      • etech
                        Confirmed User
                        • Feb 2004
                        • 1148

                        #12
                        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.

                        Comment

                        • Trixxxia
                          Confirmed User
                          • Aug 2004
                          • 5600

                          #13
                          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!

                          Comment

                          Working...