1) the "exists" test should be made before
2) the same logic should be for file
3) concatenate the 2 methods: modify FileAccessContr: createFile(name, isDirectory)