1
0
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:
Łukasz Magiera
2018-03-19 03:41:28 +01:00
parent fa9489ef72
commit b290286dd7
39 changed files with 75 additions and 76 deletions

View File

@ -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
}