mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-17 15:06:47 +08:00
misc: Fix a few typos
License: MIT Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
This commit is contained in:
6
thirdparty/dir/dir.go
vendored
6
thirdparty/dir/dir.go
vendored
@ -14,12 +14,12 @@ func Writable(path string) error {
|
||||
if err := os.MkdirAll(path, os.ModePerm); err != nil {
|
||||
return err
|
||||
}
|
||||
// Check the directory is writeable
|
||||
if f, err := os.Create(filepath.Join(path, "._check_writeable")); err == nil {
|
||||
// Check the directory is writable
|
||||
if f, err := os.Create(filepath.Join(path, "._check_writable")); err == nil {
|
||||
f.Close()
|
||||
os.Remove(f.Name())
|
||||
} else {
|
||||
return errors.New("'" + path + "' is not writeable")
|
||||
return errors.New("'" + path + "' is not writable")
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user