When test my code, I found this case failed, but can't understand why a parent can be a file(org.apache.hadoop.fs.s3a. ITestS3AMiscOperations ) .
@Test(expected = FileAlreadyExistsException.class)
public void testCreateNonRecursiveParentIsFile() throws IOException {
Path parent = path("/file.txt");
ContractTestUtils.touch(getFileSystem(), parent);
createNonRecursive(new Path(parent, "fail"));
}
