LucasLeandro1204 / Pornsearch

Easy way to search for porn content!
MIT License
329 stars 68 forks source link

Fix an error that happens without this #6

Closed favna closed 7 years ago

favna commented 7 years ago

When using Path.resolve(./src/Modules) it will return Error: ENOENT: no such file or directory, scandir, or in other words, it won't be able to find the directory. This at least counts for Windows systems however path.join is a method that works regardless of the system and generally highly recommended whatsoever. More on path.join here. and on the __dirname variable here

LucasLeandro1204 commented 7 years ago

@Favna nice tip, thanks.