On Fri, May 31, 2024 at 05:30:19PM +0100, mick.crane wrote:
> I only drag stuff in and out of the directory in Thunar. Dragging from the
> directory takes a copy. I wondered what would happen if somebody deleted a
> file while you were half way through fetching it.

If you're copying a file, that means some process has the file opened.

Removing (unlinking) a file that's opened causes it to vanish from the
raw directory, but the inode and the blocks of data are left alone until
all processes have closed it.  Only then will it be marked for recyling.

You'll just have to hope that the (remote) copy succeeds on the first
try, because once the remote reader loses connection, if the file is
closed on the server, it's gone.

Reply via email to