aboutsummaryrefslogtreecommitdiff
path: root/musicopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'musicopy.c')
-rw-r--r--musicopy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/musicopy.c b/musicopy.c
index 3a85331..80ed706 100644
--- a/musicopy.c
+++ b/musicopy.c
@@ -104,6 +104,8 @@ void copy(const char* path) {
}
int dir_callback(const char* path, const struct stat *sb, int tflag) {
+ if(tflag != FTW_F) return 0;
+
if (include_length > 0) {
bool includes = false;
for(int i = 0; i < include_length; i++) {
@@ -155,7 +157,7 @@ int main() {
print_opts();
- ftw(music_dir, dir_callback, FTW_F);
+ ftw(music_dir, dir_callback, 0);
return 0;
}