mirror of
https://github.com/dolthub/dolt.git
synced 2026-04-21 19:39:04 -05:00
Fix for regression in relative base dir functionality of go/libraries/utils/filesys/localfs.go
This commit is contained in:
@@ -206,7 +206,11 @@ func (fs *localFS) OpenForWriteAppend(fp string, perm os.FileMode) (io.WriteClos
|
||||
// WriteFile writes the entire data buffer to a given file. The file will be created if it does not exist,
|
||||
// and if it does exist it will be overwritten.
|
||||
func (fs *localFS) WriteFile(fp string, data []byte, perms os.FileMode) error {
|
||||
return file.WriteFileAtomically(fp, bytes.NewReader(data), perms)
|
||||
abs, err := fs.Abs(fp)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return file.WriteFileAtomically(abs, bytes.NewReader(data), perms)
|
||||
}
|
||||
|
||||
// MkDirs creates a folder and all the parent folders that are necessary to create it.
|
||||
|
||||
Reference in New Issue
Block a user