mirror of
https://github.com/altlinux/gpupdate.git
synced 2025-03-21 18:50:38 +03:00
Added None handling in attributes
This commit is contained in:
parent
889bf5124a
commit
b63fe63784
@ -27,13 +27,15 @@ from .folder import str2bool
|
||||
|
||||
class Files_cp:
|
||||
def __init__(self, arg_dict):
|
||||
self.fromPath = Path(arg_dict['fromPath'])
|
||||
self.fromPath = (Path(arg_dict['fromPath'])
|
||||
if arg_dict['fromPath'] else None)
|
||||
self.targetPath = Path(arg_dict['targetPath'])
|
||||
self.action = action_letter2enum(arg_dict['action'])
|
||||
self.readOnly = str2bool(arg_dict['readOnly'])
|
||||
self.archive = str2bool(arg_dict['archive'])
|
||||
self.hidden = str2bool(arg_dict['hidden'])
|
||||
self.suppress = str2bool(arg_dict['suppress'])
|
||||
self.suppress = (str2bool(arg_dict['suppress'])
|
||||
if arg_dict['suppress'] else None)
|
||||
|
||||
def _create_action(self):
|
||||
pass
|
||||
|
Loading…
x
Reference in New Issue
Block a user