diff --git a/thefuck/rules/cp_omitting_directory.py b/thefuck/rules/cp_omitting_directory.py new file mode 100644 index 00000000..9e5b975c --- /dev/null +++ b/thefuck/rules/cp_omitting_directory.py @@ -0,0 +1,10 @@ +def match(command, settings): + if 'cp: omitting directory' in command.stderr.lower(): + return True + return False + + +def get_new_command(command, settings): + return command.script.replace('cp', 'cp -r') + +