Open humphd opened 3 years ago
Right now you are using the filename to make assumptions about whether or not something is a file or folder. A better solution is to stat the path and then inspect the result to see what it is.
Right now you are using the filename to make assumptions about whether or not something is a file or folder. A better solution is to stat the path and then inspect the result to see what it is.