Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
CodingPoeta committed Jan 17, 2025
1 parent 7d36859 commit c8f4943
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion sdk/java/libjfs/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -869,7 +869,12 @@ func jfs_rmr(pid int64, h int64, cpath *C.char) int32 {
}

//export jfs_rename
func jfs_rename(pid int64, h int64, oldpath *C.char, newpath *C.char, flags uint32) int32 {
func jfs_rename(pid int64, h int64, oldpath *C.char, newpath *C.char) int32 {
return jfs_rename0(pid, h, oldpath, newpath, meta.RenameNoReplace)
}

//export jfs_rename0
func jfs_rename0(pid int64, h int64, oldpath *C.char, newpath *C.char, flags uint32) int32 {
w := F(h)
if w == nil {
return EINVAL
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/juicefs/juicefs/juicefs.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ def rmdir(self, path):

def rename(self, old, new):
"""Rename the file or directory old to new."""
self.lib.jfs_rename(c_int64(_tid()), c_int64(self.h), _bin(old), _bin(new), c_uint32(0))
self.lib.jfs_rename0(c_int64(_tid()), c_int64(self.h), _bin(old), _bin(new), c_uint32(0))

def listdir(self, path, detail=False):
"""Return a list containing the names of the entries in the directory given by path."""
Expand Down

0 comments on commit c8f4943

Please sign in to comment.