plugins.file.moveFile() does not work on OS X

Hello,

the plugin function plugins.file.moveFile() does not work on OS X if I want to move a file from one server volume to another folder on that server volume:

plugins.file.moveFile('/Volumes/server1/folderX/file1.txt', '/Volumes/server1/folderY/file1.txt')

I get no error, but the file will not be moved.
If I try that on a local volume everything works fine.

To ‘solve’ that problem I copy the file and delete it afterwards in the source folder.

Greetings,
Christoph

Hi Christoph,

What protocol do you use for that server mount? AFP? SMB?

Hi Robert,

it’s AFP.

Hi Christoph,

I can reproduce the issue although you do get feedback when it doesn’t move the file.
The functions returns true/false if it’s successful or not.

Maybe it has something to do with setting the owner/group because when I do the same thing in the command line using the mv command then I get the following error:

mv: /Volumes/server1/test.zip: set owner/group (was: 501/501): Operation not supported

But the file does get moved though.

Anyway, I suggest you file this as an issue in the Servoy support system.

this behavior is not yet supported now with move.
Currently move is a rename thing only and what you want is a copy and delete.

We have to fix the move function for that.