iCloud Drive

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

iCloud Drive Sat Jun 13, 2020 4:11 am • by ads
When Hazel moves a file (an mp4) to an iCloud Drive folder, the files is moved locally but never uploads to Apple's iCloud sever. If the file is copied instead of moved, the copied file uploads as expected, but there doesn't appear to be any way to have Hazel delete the original. How do I move a file to iCloud and delete the original location?

This is in Catalina. In Mojave, the moved file uploaded to iCloud.
ads
 
Posts: 3
Joined: Sat Jun 13, 2020 4:01 am

Re: iCloud Drive Mon Jun 15, 2020 10:21 am • by Mr_Noodle
I'm guessing this is some sort of Catalina/iCloud bug as it shouldn't matter how the file appears there. I assume manual moves in Finder upload fine? Have you experimented with different source folders?
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: iCloud Drive Mon Jun 15, 2020 1:07 pm • by ads
Not uploading moved files to iCloud is a Catalina, Netatmo, or FTP Server bug. The files are movies placed on an FTP server by Netatmo cameras. I don't know if the bug affects any other files.

Moving files manually results in the same problem. Files copied with the finder (manually or with Hazel) upload to iCloud as expected.

Hazel deletes the original file if I create a rule for a folder enclosed by the folder that has the copy file rule attached. This works, but it would be better if Hazel allowed two actions on the same file.
ads
 
Posts: 3
Joined: Sat Jun 13, 2020 4:01 am

Re: iCloud Drive Tue Jun 16, 2020 10:38 am • by Mr_Noodle
You can have multiple actions on the same file. But if you do a copy, the actions operate on the copy, not the original. There is very rarely a good reason to do a copy, then remove the original as a move action does the same thing, and more succinctly.

You can try using the sync action to sync an individual file. Subsequent actions in the same rule will operate on the original file in that case.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: iCloud Drive Tue Jun 16, 2020 11:08 am • by ads
'Sync File' followed by 'Move to Trash' works. Thanks.
ads
 
Posts: 3
Joined: Sat Jun 13, 2020 4:01 am

Re: iCloud Drive Sat Jul 11, 2020 9:58 am • by manofwy
Here is a twist on the same issue. I want to copy a file to the DEVONthink inbox and then move the file to another folder for processing into an archive. The copy works but then the move takes the file from the DT inbox and moves it to the archive. The original file is left in my Downloads folder and gets re-processed later or left to rot (depending on if I manually process rules).

Basically, I want to create two copies of the file and remove the original.

Edit post ------ Oops, I didn't think the sync was working for me. It was a different connection problem and the Sync then Move works beautifully. I am leaving the post up as one of your rare examples of copy and move. It's just called Sync and Move.
manofwy
 
Posts: 11
Joined: Fri Mar 16, 2012 10:26 am
Location: White Bear Township, MN

Re: iCloud Drive Mon Jul 13, 2020 10:13 am • by Mr_Noodle
Note that in your case, you can do a Move then Copy.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: iCloud Drive Mon Oct 31, 2022 8:08 am • by jdd
Jumping on this thread to keep iCloud Qs in one place.

I realise local files are what Hazel works with best, but I rely heavily on iCloud at the moment and I'm also having problems getting Hazel to stop deleting folders it recognises as empty before the contained files have downloaded locally (which happens automatically when connected to the internet, but variable how long the process will take).
My Trash Empty Folders ruleset:
Kind is Folder
Size is 0 bytes
Sub-file/folder Count is 0

Move to folder Trash

As a workaround I've added a sleep shell script as you suggested, but to accommodate different connections speeds I've set to 120 seconds which obviously isn't ideal.

Could Hazel ever get access to the iCloud Status data of a file? I don't know why even the iCloud aliases don't have any 'weight' so Hazel can recognised them, but being able to add a condition like:
iCloud Status is Downloaded

…would solve my problem! Thanks Mr Noodle.
jdd
 
Posts: 7
Joined: Thu Aug 25, 2016 6:27 pm

Re: iCloud Drive Mon Oct 31, 2022 9:34 am • by Mr_Noodle
There might be some APIs I can use to check this. I'll look into this as a possible future addition.

Note that it may be tricky as even if a folder is considered downloaded/local, that may not indicate that the files within are. If you are interested in testing such a thing out, contact me and I'll let you know when I start working on it.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: iCloud Drive Mon Oct 31, 2022 9:47 am • by jdd
That's great, thanks. I'll email the support address.
jdd
 
Posts: 7
Joined: Thu Aug 25, 2016 6:27 pm


Return to Support