Page 1 of 1

Why does the move command just copy then delete?

PostPosted: Fri Feb 28, 2014 11:40 am
by JRhodes88
I've noticed that the move command in Hazel just copies the file and then deletes the original.

Is there any reason or fix for this? It's pretty slow when interacting with large files.

Re: Why does the move command just copy then delete?

PostPosted: Fri Feb 28, 2014 5:58 pm
by Mr_Noodle
It doesn't do that normally. When doing it on the same drive, it should just move the reference to the file to the new location. When moving across disks, though, you can't do that, so it has to copy then delete. What kind of problem are you seeing?

Re: Why does the move command just copy then delete?

PostPosted: Sat Mar 01, 2014 11:27 am
by JRhodes88
This is exactly what it is doing.

Hazel is installed to my internal hard drive, but all the rules happen on an external Firewire 800 drive.

Is that causing an issue?

The Files are being moved from one folder to another, but both the source and destination are on that external drive.

Re: Why does the move command just copy then delete?

PostPosted: Mon Mar 03, 2014 5:12 pm
by Mr_Noodle
Do you have any sort of logs showing that this is happening?

Re: Why does the move command just copy then delete?

PostPosted: Mon Mar 03, 2014 8:38 pm
by JRhodes88
Mr_Noodle wrote:Do you have any sort of logs showing that this is happening?


I do not, but I'm watching it happen. I can open two finder windows with the source and target destinations and watch a file size grow until it is 100% and then the source gets deleted.

With large files, over 5GB, this can take a very long time.

Again...this is happening on an External Firewire Drive. Hazel is installed on my internal drive.

Re: Why does the move command just copy then delete?

PostPosted: Wed Mar 05, 2014 4:01 pm
by Mr_Noodle
What happens if you do the same move manually with Finder?

Re: Why does the move command just copy then delete?

PostPosted: Thu Mar 06, 2014 10:08 am
by JRhodes88
Mr_Noodle wrote:What happens if you do the same move manually with Finder?


It moves it as expected. Happens so fast.

Re: Why does the move command just copy then delete?

PostPosted: Fri Mar 07, 2014 3:22 pm
by Mr_Noodle
Does the filename contain any colons or slashes? If so, do you notice different behavior on files that don't contain those characters?

Overall, it seems weird. Ultimately, Hazel is using Apple's routines to perform the move so the decision to do a copy/delete is happening within Apple's code. Hopefully, if we can isolate it, I can file a bug with them about it or figure out some sort of workaround.

Re: Why does the move command just copy then delete?

PostPosted: Fri Mar 07, 2014 11:30 pm
by JRhodes88
Mr_Noodle wrote:Does the filename contain any colons or slashes? If so, do you notice different behavior on files that don't contain those characters?

Overall, it seems weird. Ultimately, Hazel is using Apple's routines to perform the move so the decision to do a copy/delete is happening within Apple's code. Hopefully, if we can isolate it, I can file a bug with them about it or figure out some sort of workaround.


No strange characters, colons, or slashes in the filename.

Is there any log or capture method you want me to try to grab of the process for you?

Re: Why does the move command just copy then delete?

PostPosted: Mon Mar 10, 2014 3:41 pm
by Mr_Noodle
Post the log of the move itself so I can see the full paths involved. Also, if there is anything else you can tell me about this drive (filesystem, brand, etc.), that might help.

Re: Why does the move command just copy then delete?

PostPosted: Wed Mar 12, 2014 6:52 pm
by JRhodes88
I'm so sorry to have wasted your time. This was just a HUGE oversight on my part.

It's similar to those times when you are coding a huge project and waste several hours scratching your head only to find out you forgot a semi-colon. :D

Thank you again for your time. I will let you know if this starts acting strange with proper testing first.

Re: Why does the move command just copy then delete?

PostPosted: Thu Mar 13, 2014 2:22 pm
by Mr_Noodle
Can you described what happened? You can't just leave me hanging here! :o

Re: Why does the move command just copy then delete?

PostPosted: Fri Mar 14, 2014 9:33 am
by JRhodes88
Mr_Noodle wrote:Can you described what happened? You can't just leave me hanging here! :o


I think a few weeks ago I was messing around with my rules and switched it to copy instead of move. I just never looked because the rule name was still titled "move". :?

Re: Why does the move command just copy then delete?

PostPosted: Fri Mar 14, 2014 2:42 pm
by Mr_Noodle
Ah ok. Glad you got it all sorted.