diff options
Diffstat (limited to 'subplot/data.py')
-rw-r--r-- | subplot/data.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/subplot/data.py b/subplot/data.py index 9eadd3f..09df6c5 100644 --- a/subplot/data.py +++ b/subplot/data.py @@ -13,6 +13,10 @@ def create_file_with_random_data(ctx, filename=None): f.write(data) +def chmod_file(ctx, filename=None, mode=None): + os.chmod(filename, int(mode, 8)) + + def create_manifest_of_live(ctx, dirname=None, manifest=None): _create_manifest_of_directory(ctx, dirname=dirname, manifest=manifest) |