Skip to content

Commit 54fc462

Browse files
committed
small cleanup
1 parent 0b3940f commit 54fc462

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

protocol/afp/afp.go

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,10 +384,6 @@ func WalkRootDir(conn net.Conn, path string) (uint16, uint32, bool) {
384384
// split the dir path
385385
pathElements := strings.Split(path, "/")
386386

387-
// Set the bitmasks for file and directory
388-
389-
// dirBitmap := afp.DirBitmapNodeID + afp.DirBitmapParentDirID + afp.DirBitmapLongName
390-
391387
// Open the volume by name (first component of the path)
392388
volumeID, ok := OpenVolume(conn, VolBitmapID, []byte(pathElements[0]))
393389
if !ok {
@@ -941,7 +937,7 @@ func RenameFileHelper(conn net.Conn, srcPath string, dstPath string, dstName str
941937
pathElements := strings.Split(srcPath, "/")
942938
srcFileName := pathElements[len(pathElements)-1]
943939

944-
// Step 2: copy files
940+
// Step 2: move files
945941
ok = MoveAndRenameFile(conn, volumeID1, dirID1, srcFileName, dirID2, dstPath, dstName)
946942

947943
return ok

0 commit comments

Comments
 (0)