aboutsummaryrefslogtreecommitdiff
path: root/hotline/file_wrapper.go
diff options
context:
space:
mode:
authorJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-21 10:33:14 -0700
committerJeff Halter <868228+jhalter@users.noreply.github.com>2022-06-21 10:33:14 -0700
commit46b48603ea0e69aab8084a3ce32b31995b31b09c (patch)
treefc3b91036e248695af8e70c85e76a7a22b8e613d /hotline/file_wrapper.go
parent2e08be587963ac3fcb204fb52186c17254b9fe56 (diff)
Replace path.Join with filepath.Join
Diffstat (limited to 'hotline/file_wrapper.go')
-rw-r--r--hotline/file_wrapper.go9
1 files changed, 4 insertions, 5 deletions
diff --git a/hotline/file_wrapper.go b/hotline/file_wrapper.go
index 2ad76f4..997d6d9 100644
--- a/hotline/file_wrapper.go
+++ b/hotline/file_wrapper.go
@@ -7,7 +7,6 @@ import (
"io"
"io/fs"
"os"
- "path"
"path/filepath"
)
@@ -168,22 +167,22 @@ func (f *fileWrapper) dataFile() (os.FileInfo, error) {
// move a fileWrapper and its associated metadata files to newPath
func (f *fileWrapper) move(newPath string) error {
- err := f.fs.Rename(f.dataPath, path.Join(newPath, f.name))
+ err := f.fs.Rename(f.dataPath, filepath.Join(newPath, f.name))
if err != nil {
// TODO
}
- err = f.fs.Rename(f.incompletePath, path.Join(newPath, f.incompleteDataName()))
+ err = f.fs.Rename(f.incompletePath, filepath.Join(newPath, f.incompleteDataName()))
if err != nil {
// TODO
}
- err = f.fs.Rename(f.rsrcPath, path.Join(newPath, f.rsrcForkName()))
+ err = f.fs.Rename(f.rsrcPath, filepath.Join(newPath, f.rsrcForkName()))
if err != nil {
// TODO
}
- err = f.fs.Rename(f.infoPath, path.Join(newPath, f.infoForkName()))
+ err = f.fs.Rename(f.infoPath, filepath.Join(newPath, f.infoForkName()))
if err != nil {
// TODO
}