diff options
Diffstat (limited to 'libbb/remove_file.c')
-rw-r--r-- | libbb/remove_file.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libbb/remove_file.c b/libbb/remove_file.c index 5b75f7f30..eaca293d9 100644 --- a/libbb/remove_file.c +++ b/libbb/remove_file.c | |||
@@ -78,6 +78,10 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
78 | return -1; | 78 | return -1; |
79 | } | 79 | } |
80 | 80 | ||
81 | if (flags & FILEUTILS_VERBOSE) { | ||
82 | printf("removed directory: '%s'\n", path); | ||
83 | } | ||
84 | |||
81 | return status; | 85 | return status; |
82 | } | 86 | } |
83 | 87 | ||
@@ -98,5 +102,9 @@ int FAST_FUNC remove_file(const char *path, int flags) | |||
98 | return -1; | 102 | return -1; |
99 | } | 103 | } |
100 | 104 | ||
105 | if (flags & FILEUTILS_VERBOSE) { | ||
106 | printf("removed '%s'\n", path); | ||
107 | } | ||
108 | |||
101 | return 0; | 109 | return 0; |
102 | } | 110 | } |