@jk I doubt a simple program like ls would be up to the job tho. It's only looking at the files superficially, from a file system point of view. But you simply don't know how they dress up these days.
To determine the real gender of a given file, you would have to look very strongly at the bytestream with a hex editor. That's mandatory before permitting write access in a public bathroom in Florida.