Don't try to handle directories in file handling logic