-
Notifications
You must be signed in to change notification settings - Fork 120
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
can it surpport POSIX rename interface now #254
Comments
Unfortunately there's a few reasons for that:
So I return EXDEV to signal that copy/unlink required. I can explore the possibility of setting "filename" property(if and only, source/destination paths are in the same directory), but I think I've tried it before and it didn't work. |
Yes, I totally approval of a limitted support to Especially in appications like I know you must have implemented the rename function and I willing to try the function. |
fixed in 140beb4 |
Hi,
I am choosing aft-mtp-mount to mount my devices as a result of it's amazing speed to read/write/dir iterator.
I used QFile::rename (from Qt) to rename a file or a directory and failed! Hope to have
rename
API because it's a frequently used function.step1: mount mobile with path /home/ocean/my-device/ (with mobile file transfer mode set)
$ fuse/aft-mtp-mount /home/ocean//my-device
step2: prepare an empty directory under mobile path.
mkdir -p /home/ocean//my-device/nulldfrom
step2: run the demo.
./t_rename
step3: the debug info shown us "rename nulldfrom to nulldto"
I also used std::ename with the same result!
The text was updated successfully, but these errors were encountered: