1
0
mirror of https://github.com/deadc0de6/dotdrop.git synced 2026-02-09 15:14:17 +00:00

adding chmod_on_import option for #324

This commit is contained in:
deadc0de6
2021-10-10 14:21:49 +02:00
parent 06e9cde0be
commit bc8346d7cb
5 changed files with 42 additions and 4 deletions

View File

@@ -130,6 +130,7 @@ class Options(AttrMonitor):
self.impignore = None
self.upignore = None
self.link_on_import = None
self.chmod_on_import = None
# args parsing
self.args = {}
@@ -258,7 +259,7 @@ class Options(AttrMonitor):
"""import specifics"""
self.import_path = self.args['<path>']
self.import_as = self.args['--as']
self.import_mode = self.args['--preserve-mode']
self.import_mode = self.args['--preserve-mode'] or self.chmod_on_import
self.import_ignore = self.args['--ignore']
self.import_ignore.extend(self.impignore)
self.import_ignore.append('*{}'.format(self.install_backup_suffix))