Loading ...
Sorry, an error occurred while loading the content.

Re: [PBML] recursive directory listing

Expand Messages
  • Jean-S├ębastien Guay
    Quick hint : in a loop where you do readdir to get each file in the directory into a variable $filename (for example), this will tell you if the file is
    Message 1 of 1 , Nov 29, 2002
    • 0 Attachment
      Quick hint :

      in a loop where you do "readdir" to get each file in the directory into a variable $filename (for example), this will tell you if the file is actually not a file but a directory :

      if (-d $filename) {
      # whatever
      }

      Hope this helps,

      J-S
      ----- Original Message -----
      From: Aaron
      To: perl-beginner@yahoogroups.com
      Sent: Friday, November 29, 2002 5:50 PM
      Subject: [PBML] recursive directory listing


      I've written a perl script which will scans the current directly for
      pictures, creates thumbnail (and medium sized images if I want it
      to) then generates a .html and .js file for displaying the pictures.
      I got all of this working just fine (took me forever since I'm new
      to perl). What I need the script to do now is look for other sub-
      directorys off the current one and do the same process in each of
      those. I can't seem to find a way to do this. Can someone here help?

      -Aaron


      Yahoo! Groups Sponsor
      ADVERTISEMENT




      Unsubscribing info is here: http://help.yahoo.com/help/us/groups/groups-32.html

      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.


      [Non-text portions of this message have been removed]
    Your message has been successfully submitted and would be delivered to recipients shortly.