diff --git a/thefuck/rules/no_such_file.py b/thefuck/rules/no_such_file.py index 157a41a6..9a0f3b45 100644 --- a/thefuck/rules/no_such_file.py +++ b/thefuck/rules/no_such_file.py @@ -3,7 +3,9 @@ import re patterns = ( r"mv: cannot move '[^']*' to '([^']*)': No such file or directory", + r"mv: cannot move '[^']*' to '([^']*)': Not a directory", r"cp: cannot create regular file '([^']*)': No such file or directory", + r"cp: cannot create regular file '([^']*)': Not a directory", )