diff options
author | tomlu <tomlu@google.com> | 2017-12-11 18:23:51 -0800 |
---|---|---|
committer | Copybara-Service <copybara-piper@google.com> | 2017-12-11 18:25:36 -0800 |
commit | 52aff7dcac17c73a221487acc147e631c75124cd (patch) | |
tree | 10dcc3fe0007cc3c42df9ab4b570f140dac63316 /src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java | |
parent | 15feaf99b780e4a2c4cdd2647e5b51ea98579aad (diff) |
Thread FileSystem instance through a few call sites.
PiperOrigin-RevId: 178704585
Diffstat (limited to 'src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java')
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java b/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java index 33fb154fdd..fef88b892b 100644 --- a/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java +++ b/src/main/java/com/google/devtools/build/lib/vfs/FileSystem.java @@ -250,12 +250,11 @@ public abstract class FileSystem { return fileSystem; } - /** - * Creates a directory with the name of the current path. See - * {@link Path#createDirectory} for specification. + * Creates a directory with the name of the current path. See {@link Path#createDirectory} for + * specification. */ - protected abstract boolean createDirectory(Path path) throws IOException; + public abstract boolean createDirectory(Path path) throws IOException; /** * Returns the size in bytes of the file denoted by {@code path}. See {@link @@ -267,11 +266,8 @@ public abstract class FileSystem { */ protected abstract long getFileSize(Path path, boolean followSymlinks) throws IOException; - /** - * Deletes the file denoted by {@code path}. See {@link Path#delete} for - * specification. - */ - protected abstract boolean delete(Path path) throws IOException; + /** Deletes the file denoted by {@code path}. See {@link Path#delete} for specification. */ + public abstract boolean delete(Path path) throws IOException; /** * Returns the last modification time of the file denoted by {@code path}. See {@link @@ -693,7 +689,7 @@ public abstract class FileSystem { * * @throws IOException if there was an error reading or writing the file's metadata */ - protected abstract void setWritable(Path path, boolean writable) throws IOException; + public abstract void setWritable(Path path, boolean writable) throws IOException; /** * Returns true iff the file represented by the path is executable. |