Automated rollback of commit cb7689404ef9a69488d64bfc2e0bfb9326e664d6.

*** Reason for rollback ***

Rolling forward after the underlying issue has been fixed.

*** Original change description ***

Automated rollback of commit 6a54339bb943702bd7dffc43f85267dac98dc355.

*** Reason for rollback ***

b/71442447

*** Original change description ***

Call through to Path#createDirectoryAndParents from FileUtils.

This CL removes a method that due to its implementation causes threading difficulties for Path#createDirectory.

The tests for the method are brought across to FileSystemTests since the methods are now implemented natively by the FileSystem classes. The tests were also cleaned up.

The test revealed an edge c...

***

PiperOrigin-RevId: 181367850
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/UnionFileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/UnionFileSystem.java
index 569357b..d924e19 100644
--- a/src/main/java/com/google/devtools/build/lib/vfs/UnionFileSystem.java
+++ b/src/main/java/com/google/devtools/build/lib/vfs/UnionFileSystem.java
@@ -209,7 +209,7 @@
   public void createDirectoryAndParents(Path path) throws IOException {
     checkModifiable(path);
     FileSystem delegate = getDelegate(path);
-    delegate.createDirectoryAndParents(path);
+    delegate.createDirectoryAndParents(adjustPath(path, delegate));
   }
 
   @Override