summaryrefslogtreecommitdiff
path: root/src/rep.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/rep.c')
-rw-r--r--src/rep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rep.c b/src/rep.c
index b333ef5..6ff03c3 100644
--- a/src/rep.c
+++ b/src/rep.c
@@ -353,7 +353,7 @@ int replaceFolder(r_context* ctx, char* folder)
/* And for every file */
do
{
- if(ent.d_type & DT_DIR)
+ if(!(ent.d_type & DT_DIR))
{
int r = 0;