filtype() Problems



Hi,

I wrote a simple script utilizing readdir() to read the contents of a directory, then of all subdirectories and thier contents and echo the filenames to the page.

But, here is the problem. I'm also echo'ing filtype() to ensure only files and not the directory names are printed. But I've noticed some of the files are not returning a type.

Has anyone seen this before? Am I just crazy?

Thanks for your help,

Kevin
.



Relevant Pages

  • Re: Empty Directory problem
    ... I wonder if this would work for you (filenames starting with a period ... echo "Directory is empty" ... echo "Directory contains files" ... subdirectories within would trigger ...
    (comp.unix.shell)
  • [HPADM] Summary: Pinpointing Filesystem Problems
    ... The two most through answers came from Bill Hassell and Wolf-Dietrich ... As far as spotting out-of-control directories, ... For long filenames, use find to locate files and then ... echo "huge directories are slow:" ...
    (HP-UX-Admin)
  • yet another bash question
    ... to rename the files, keeping the numerical part and coding something else in ... # any filenames, and replace it by another string, subject to avoiding ... echo "you will prepend all filenames in pwd,"; ...
    (Debian-User)
  • Re: For Command - can I do IN clause: (cmd 1 & cmd 2) ???
    ... /O:N') do echo %%* ... "Pegasus (MVP)" wrote: ... I need to see all the files in the subdirectories BEFORE I see the ... yielding me the highest level directory last ...
    (microsoft.public.windowsxp.general)
  • Re: capital ->lower case?
    ... >> that none of the upper-cased filenames will collide when changed to ... The quotes aren't necessary in the echo ... informally) of excluding spaces or other whitespace characters. ...
    (alt.os.linux.suse)