pkg/environment: Migrate fs functions to fsx
This commit is contained in:
parent
45540ab253
commit
5a43ecfaeb
21 changed files with 155 additions and 199 deletions
|
|
@ -126,7 +126,7 @@ func (sc *stagingContext) AddDirectory(path string, op func(context.Context) err
|
|||
}
|
||||
|
||||
// run the make directory
|
||||
if err := sc.env.Mkdir(dst, environment.DefaultDirPerm); err != nil {
|
||||
if err := fsx.Mkdir(dst, fsx.DefaultDirPerm); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
|
|
@ -178,7 +178,7 @@ func (sc *stagingContext) AddFile(path string, op func(ctx context.Context, file
|
|||
}
|
||||
|
||||
// create the file
|
||||
file, err := sc.env.Create(dst, environment.DefaultFilePerm)
|
||||
file, err := fsx.Create(dst, fsx.DefaultFilePerm)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue