gofastasf
gofastasf
- Simplify buffer management with Write method. - Use Buffer.Next for moving to next chunk.
- filepath.Walk call os.Lstat for every file or directory that is being traversed. - filepath.WalkDir avoids stat call by directly providing DirEntry interface. - Use filepath.Ext for filepath extension instead...
path package methods are used for URL and unix specific paths and might cause error on windows. filepath methods are cross platform and more consistent with the code.