diff options
author | lonkaars <loek@pipeframe.xyz> | 2021-06-03 16:20:36 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2021-06-03 16:20:36 +0200 |
commit | 2ec30275321d52f89b8f9fb1ed1668edeeab694b (patch) | |
tree | 89b951aa54e00719f0c47240efc921797abc26dd | |
parent | c4e0b767338a63e797cdceb771358eb5aab8fc4f (diff) |
ignore folders working
-rw-r--r-- | musicopy.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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; } |