Code maintenance: OS package for file system
- OS custom internal package for file system interaction - Remove fileManager external dependency - Closer API to Go's native API on the OS - Create directories at startup - Better testability - Move Unsetenv to os interface
This commit is contained in:
9
internal/os/alias.go
Normal file
9
internal/os/alias.go
Normal file
@@ -0,0 +1,9 @@
|
||||
package os
|
||||
|
||||
import nativeos "os"
|
||||
|
||||
// Aliases used for convenience so "os" does not have to be imported
|
||||
|
||||
type FileMode nativeos.FileMode
|
||||
|
||||
var IsNotExist = nativeos.IsNotExist
|
||||
Reference in New Issue
Block a user