"The idea that a directory is stored as a file, whose size and other characteristics can be queried like other files, is highly OS-specific." . . . .