Don't try to treat directories like files.