organize: Monterey, Organize v2: Google Drive gives [Errno 1] Operation not permitted

Sorry, I missed your request to see my config. Organize is still not working with Google Drive.

Here is my config file after migrating to v2 (slightly modified for privacy):

rules:
    # move screenshots into year/month/day folders
    - locations:
        - /Users/x/Pictures/InstantShot
      filters:
        - extension:
            - jpg
        - created
      actions:
        - move: "/Volumes/Google Drive/My Drive/_x/x/x/x (x)/{created.strftime('%Y')}/{created.strftime('%m')}/{created.strftime('%d')}/"

Simulation is successful, but upon running I get errors like:

 - (move) ERROR! unable to create /Volumes/Google Drive/My Drive/_x/x/x/x (x)/2022/01/18 ([Errno 1] Operation 
not permitted: '/Volumes/Google Drive/My Drive/_x/x/x/x (x)/2022/01/18')

╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│                                                                                                  │
│ /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/organize/cli.py:86 │
│ in run_local                                                                                     │
│                                                                                                  │
│    83 │   │   config_dir, config_name = split(config_path)                                       │
│    84 │   │   config = open_fs(config_dir).readtext(config_name)                                 │
│    85 │   │   os.chdir(working_dir)                                                              │
│ ❱  86 │   │   core.run(rules=config, simulate=simulate)                                          │
│    87 │   except NeedsMigrationError as e:                                                       │
│    88 │   │   console.error(e, title="Config needs migration")                                   │
│    89 │   │   console.warn(                                                                      │
│ /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/organize/core.py:3 │
│ 09 in run                                                                                        │
│                                                                                                  │
│   306 │   console.summary(count)                                                                 │
│   307 │                                                                                          │
│   308 │   if count["fail"]:                                                                      │
│ ❱ 309 │   │   raise RuntimeWarning("Some actions failed.")                                       │
│   310                                                                                            │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
RuntimeWarning: Some actions failed.

_Originally posted by @andyylin in https://github.com/tfeldmann/organize/issues/152#issuecomment-1032382637_

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Great one 😅 Didn’t see it either!

OK, it was a silly coding error of my side:

dest: "/Downloads/IMAGE/"

Should have been

dest: "~/Downloads/IMAGE/"

all along sighs

Sorry to have wasted your time.

Maybe the log file helps: ~/Library/Logs/organize/organize.log