diff options
author | Jürg Billeter <j@bitron.ch> | 2020-01-22 13:47:17 +0100 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2020-02-11 21:08:59 +0100 |
commit | 6cd3dadf3c1d8f14a867c4444af6d2f15019ae18 (patch) | |
tree | decf88cc4d3b5d0071acc6b0bd954e9a1d3073e7 /src/buildstream/storage | |
parent | ef060ad74498289fe7ed2216fd5282db375827ea (diff) | |
download | buildstream-6cd3dadf3c1d8f14a867c4444af6d2f15019ae18.tar.gz |
_filebaseddirectory.py: Add _create_empty_file() method
Diffstat (limited to 'src/buildstream/storage')
-rw-r--r-- | src/buildstream/storage/_filebaseddirectory.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/buildstream/storage/_filebaseddirectory.py b/src/buildstream/storage/_filebaseddirectory.py index f75aa7154..07efa4598 100644 --- a/src/buildstream/storage/_filebaseddirectory.py +++ b/src/buildstream/storage/_filebaseddirectory.py @@ -343,3 +343,7 @@ class FileBasedDirectory(Directory): # and incorrectly thinks they are broken the new casbaseddirectory dose not have this bug. return os.path.lexists(os.path.join(self.external_directory, *path)) raise ImplError("_exists can only follow symlinks in filebaseddirectory") + + def _create_empty_file(self, name): + with open(os.path.join(self.external_directory, name), "w"): + pass |