anchor.diff:  
     static void testDirectorySync() {
       var tempDir = tempDirectory.path;
  -    var file = new File("${tempDir}/file");
  +    var file = new File("${tempDir}/testDirectorySync");
       // Non-existing file should throw exception.
       Expect.throws(file.directorySync, (e) { return e is FileIOException; });
       file.createSync();
  
positive.code:           }
            openedFile2.closeSync();
            file2.deleteSync();
          };
        };
        file.errorHandler = (s) {
  
negative.code: 
    static void createTempDirectory(Function doNext) {
      tempDirectory = new Directory('');
      tempDirectory.errorHandler = (e) {
        Expect.fail("Failed creating temporary directory");
      };
      tempDirectory.createTempHandler = doNext;
      tempDirectory.createTemp();
    }
  
    static void deleteTempDirectory() {
      tempDirectory.deleteSync(recursive: true);
    }
  
    // Test for file read functionality.
  