cannot ignore directory
dreaming121 opened this issue · comments
dreaming121 commented
when I use -m [directory/] to maintain a directory, it will appear error -- "dir_list is a list cannot be split". I go to see the source code. there are some problems.
- in line 76 and 77 temp[0],temp[1:-1] will cut off the last one and file just can be chosen the first one.
My suggestion is change the rule, right the directory first then file like [a/,b/],file1,file2. Then use temp[0] to take directory, temp[1:] to take file_list - in line 87, dir_list is a list so cannot use .split
It is wonderful to transform project and maintain file. But maintain directory still have some issues those issue also in your last project "py2o". Thank you!
cckuailong commented
Oh! Your advice is really nice. I got a mistake on "-m" option. I have fixed the bug seconds ago. Thank you for point out the bug.