cmds.posix.copy: Allow missing mode option #134
1 changed files with 2 additions and 1 deletions
|
|
@ -58,6 +58,7 @@ class CmdCopy(Cmd): # export
|
|||
__expand(args.dst),
|
||||
owner = args.owner,
|
||||
group = args.group,
|
||||
mode = int(args.mode, 0),
|
||||
# -- A mode is given as a string, if at all
|
||||
mode = int(args.mode, 0) if args.mode is not None else None,
|
||||
recursive = args.recursive,
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue