aboutsummaryrefslogtreecommitdiff
path: root/musicopy.c
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-06-03 16:20:36 +0200
committerlonkaars <loek@pipeframe.xyz>2021-06-03 16:20:36 +0200
commit2ec30275321d52f89b8f9fb1ed1668edeeab694b (patch)
tree89b951aa54e00719f0c47240efc921797abc26dd /musicopy.c
parentc4e0b767338a63e797cdceb771358eb5aab8fc4f (diff)
ignore folders working
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;
}