Yoda-Canada / Magic-SSG

MIT License
0 stars 3 forks source link

Use stat() to determine whether a filename is a file or folder #5

Open humphd opened 3 years ago

humphd commented 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.