Re: Prevent deletion of file when it is being copied

2012-09-28 Thread sam tygier
On 27/09/12 06:28, Emmet Hikory wrote: Nimit Shah wrote: While copying a file from my computer to external disk, I by mistake shift+deleted the file. But still the file transfer dialog showed that it was continuing. At the end of the transfer it failed. Hence i request you to add a check for

Re: Prevent deletion of file when it is being copied

2012-09-27 Thread Luis Mondesi
El Sep 27, 2012, a las 1:28, Emmet Hikory per...@ubuntu.com escribió: Nimit Shah wrote: While copying a file from my computer to external disk, I by mistake shift+deleted the file. But still the file transfer dialog showed that it was continuing. At the end of the transfer it failed. Hence

Re: Prevent deletion of file when it is being copied

2012-09-27 Thread Nimit Shah
Haha :D I was removing the useless files and by mistake selected that file as well along with other files. The copy was going on in the background so had forgotten about it. Nimit Shah, B Tech 4th year, Computer Engineering Department, SVNIT Surat www.dude-says.blogspot.com On Thu, Sep 27,

Re: Prevent deletion of file when it is being copied

2012-09-27 Thread John Moser
On Thu, Sep 27, 2012 at 8:34 AM, Nimit Shah nimit.sv...@gmail.com wrote: Haha :D I was removing the useless files and by mistake selected that file as well along with other files. The copy was going on in the background so had forgotten about it. Unix has a proud tradition of assuming you're

Re: Prevent deletion of file when it is being copied

2012-09-27 Thread Emmet Hikory
Luis Mondesi wrote: Usually there are 2 solutions to these types of problems: 1. develop some complex code to deal with it 2. don't do the action to begin with Typically # 2 is the best answer. Writing complex code to avoid something that's obviously the wrong thing to do by the end user

Re: Prevent deletion of file when it is being copied

2012-09-27 Thread C de-Avillez
On 27/09/12 07:51, Emmet Hikory wrote: Yes, this is contrived, etc. On the other hand, I suspect many of us have managed to be both Alice and Bob in a scenario much like that above when interrupted in the middle by some significant distraction, or just a sufficient span of time. It is

Re: Prevent deletion of file when it is being copied

2012-09-27 Thread Dale Amon
On Thu, Sep 27, 2012 at 09:51:58PM +0900, Emmet Hikory wrote: Yes, this is contrived, etc. On the other hand, I suspect many of us have managed to be both Alice and Bob in a scenario much like that above when interrupted in the middle by some significant distraction, or just a sufficient

Prevent deletion of file when it is being copied

2012-09-26 Thread Nimit Shah
While copying a file from my computer to external disk, I by mistake shift+deleted the file. But still the file transfer dialog showed that it was continuing. At the end of the transfer it failed. Hence i request you to add a check for file transfer before deleting the file. Nimit Shah, B Tech

Re: Prevent deletion of file when it is being copied

2012-09-26 Thread Emmet Hikory
Nimit Shah wrote: While copying a file from my computer to external disk, I by mistake shift+deleted the file. But still the file transfer dialog showed that it was continuing. At the end of the transfer it failed. Hence i request you to add a check for file transfer before deleting the

Re: Prevent deletion of file when it is being copied

2012-09-26 Thread Nicolas Michel
I think the problem that Nimit explains is only related to Nautillus. Am I right Nimit? Also you didn't said if the file you deleted was the source or the destination one? Regards, Nicolas 2012/9/27 Emmet Hikory per...@ubuntu.com Nimit Shah wrote: While copying a file from my computer to