From 08a2065119b00f57a12549affd242d7f2e18f9a3 Mon Sep 17 00:00:00 2001 From: mcarton Date: Fri, 15 May 2015 18:08:43 +0200 Subject: [PATCH] Add missing cases for the `no_such_file` rule --- thefuck/rules/no_such_file.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/thefuck/rules/no_such_file.py b/thefuck/rules/no_such_file.py index 157a41a..9a0f3b4 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", )