FileObject file = scratchFolder.resolveFile("dir1/file1.txt");
file.createFile();
assertEquals(FileType.FILE, file.getType());
FileObject folder = scratchFolder.resolveFile("dir1/dir2");
folder.createFolder();
assertEquals(FileType.FOLDER, folder.getType());
// Attempt to create a file that already exists as a folder
try
{