summaryrefslogtreecommitdiffstats
path: root/sched/src/com/android/sched/vfs/CachedDirectFS.java
diff options
context:
space:
mode:
Diffstat (limited to 'sched/src/com/android/sched/vfs/CachedDirectFS.java')
-rw-r--r--sched/src/com/android/sched/vfs/CachedDirectFS.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/sched/src/com/android/sched/vfs/CachedDirectFS.java b/sched/src/com/android/sched/vfs/CachedDirectFS.java
index 19affc3..9cafd3c 100644
--- a/sched/src/com/android/sched/vfs/CachedDirectFS.java
+++ b/sched/src/com/android/sched/vfs/CachedDirectFS.java
@@ -228,12 +228,19 @@ public class CachedDirectFS extends BaseVFS<CachedParentVDir, CachedParentVFile>
@Nonnull
@Override
OutputStream openWrite(@Nonnull CachedParentVFile file) throws WrongPermissionException {
+ return openWrite(file, false);
+ }
+
+ @Nonnull
+ @Override
+ OutputStream openWrite(@Nonnull CachedParentVFile file, boolean append)
+ throws WrongPermissionException {
assert !isClosed();
assert capabilities.contains(Capabilities.WRITE);
File path = getNativeFile(file.getPath());
try {
- return new FileOutputStream(path);
+ return new FileOutputStream(path, append);
} catch (FileNotFoundException e) {
FileOrDirectory.checkPermissions(path, file.getLocation(), Permission.WRITE);
throw new ConcurrentIOException(e);