Topic "you cannot move physically a file on a remote computer"

Author Message
michaa
[View user's profile]

Joined: 2005-05-15
Posts: 16
Hi,

(physicaly moving meens not only rename the file but move it physicaly to another hd)

I use Winscp to copy and move (move physically) files between my 2 computers, a debian/linux server and a windows WS. Works fine. But I can move (rename) files on the remote computer (debian/linux server) only within the /home/user1 directory. When I try to move (physicaly move) a file from /home/user1/dir1/file1 to /home/video/*.* I get an error message:
Code:
Allgemeiner Fehler (Der Server sollte eine Fehlermeldung bereitstellen).
Fehlercode: 4
Fehlermeldung vom Server: Failure
Anforderungscode: 18



It seems to be related to the fact, that moving a file outside of /home/user1 moves the file to a physically different hd.
But it works when you copy the file. In this case, the only confusing thing is that you cannot see something happening in the GUI.
_________________
greetz

michaa
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
This is how it is supposed (not) to work. Please read documentation.
If you want to "physicaly" move file to another filesystem, you need to copy and delete the file anyway. WinSCP allows you to do so.

Quote:
But it works when you copy the file.

Of course. Moving file means just to move the file information and let the data be. You cannot do this between filesystems. For copy you need to copy the data to anyway, so it naturally works even between filesystems.

Quote:
In this case, the only confusing thing is that you cannot see something happening in the GUI.

What would you want "something happening" to be like?
_________________
Martin Prikryl
michaa
[View user's profile]

Joined: 2005-05-15
Posts: 16
prikryl wrote:
...
If you want to "physicaly" move file to another filesystem, you need to copy and delete the file anyway. WinSCP allows you to do so.
Quote:
But it works when you copy the file.

Of course. Moving file means just to move the file information and let the data be. You cannot do this between filesystems.
For copy you need to copy the data to anyway, ...

OK, now I understand, but I was confused because WinSCP's behaviour is different from moving (physically) files localy with the explorer, where you do not need to copy and delete. And why the non informative error message?

May be you could improve this operations (copy, new session, delete) to one single operation witch handles the rest in the background?
Quote:

Quote:
In this case, the only confusing thing is that you cannot see something happening in the GUI.

What would you want "something happening" to be like?


There should be a "Verlaufsbalken", do not know the right word. "Verlaufsbalken" means the growing blue line witch represents the amount of data being transferred. The little window appears, but the blue line does not.


Thanks for your nice programm!
_________________
greetz

michaa
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
michaa wrote:
OK, now I understand, but I was confused because WinSCP's behaviour is different from moving (physically) files localy with the explorer, where you do not need to copy and delete.

That's not about WinSCP, that's about operating system. While Windows function to move files allows moving even between filesystems, the same function of your SFTP server does not allow this.

As written in the documentation:
Quote:
Note that most servers does not allow moving files across different file systems

That does not mean that no servers allow it. For example both Windows SFTP servers I use for testing also allow moving files across file systems. So again, this is not different behaviour of WinSCP!

Quote:
And why the non informative error message?

Answered in FAQ.

Quote:
May be you could improve this operations (copy, new session, delete) to one single operation witch handles the rest in the background?

But I cannot know that the server does not allow the move between filesystem by itself.

Quote:
There should be a "Verlaufsbalken", do not know the right word. "Verlaufsbalken" means the growing blue line witch represents the amount of data being transferred. The little window appears, but the blue line does not.

It is there. But if you copy/move one file only, it can hardly show anything, as it is once step process. It is useful only if you move/copy multiple files.
_________________
Martin Prikryl
aliber

Guest


Quote:
Quote:
May be you could improve this operations (copy, new session, delete) to one single operation witch handles the rest in the background?

But I cannot know that the server does not allow the move between filesystem by itself.


Can you make it an option to let the user decide? My server doesn't support it but it would sure be nice to be able to have the file move automatically to a different filesystem.

Especially since this causes the error to come up when I have the recycle bin feature enabled so I have to have the recycle bin feature turned off.. Crying or Very sad

Great program btw, and the old Norton Commander interface is the bomb Very Happy
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24553
Location: Prague, Czechia
aliber wrote:
Can you make it an option to let the user decide? My server doesn't support it but it would sure be nice to be able to have the file move automatically to a different filesystem.

You can make a custom command for that.

Quote:
Especially since this causes the error to come up when I have the recycle bin feature enabled so I have to have the recycle bin feature turned off.. Crying or Very sad

What error?
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License