holzschu / holzschu/a-shell

Bookmarks not working in Python script

Open
#793 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Perl
Stars
3.9k
Forks
213
Avg merge
1m
Merged PRs (30d)
1

Description

I'm trying to use the following Python script to sync two different directories.
The source is a local folder (On My iPhone), the destination is an app folder on iCloud (technically Resilio Sync).

```
from dirsync import sync

sync("~RBackups", "~OBackups", "sync")
```

I get the following error:

```
Traceback (most recent call last):
File "/private/var/mobile/Library/Mobile Documents/iCloud~is~workflow~my~workflows/Documents/Synchron/synchron.py", line 3, in
sync("~RBackups", "~OBackups", "sync")
File "/var/mobile/Containers/Data/Application/CBAF2231-285D-4486-982C-81681F954B5B/Library/lib/python3.11/site-packages/dirsync/run.py", line 15, in sync
copier = Syncer(sourcedir, targetdir, action, **options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/var/mobile/Containers/Data/Application/CBAF2231-285D-4486-982C-81681F954B5B/Library/lib/python3.11/site-packages/dirsync/syncer.py", line 107, in __init__
raise ValueError("Error: Source directory does not exist.")
ValueError: Error: Source directory does not exist.
```

How do I address file paths in two different sections of the system?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.