A directory is also a file.
In reply to Re^3: cant open files from a directory by Anonymous Monk in thread cant open files from a directory by garny