ywangd / stash

StaSh - Shell for Pythonista
MIT License
1.92k stars 227 forks source link

ICloud #359

Open hlovatt opened 5 years ago

hlovatt commented 5 years ago

Hi,

How do you access iCloud files from stash?

Thanks for any help,

— Howard.

Dutcho commented 5 years ago

Make below tiny pwd script on iCloud:

import pathlib
pathlib.Path.cwd())

Then run the pwd script on your iDevice, and it will tell you the location of the iCloud folder on your iDevice. For me, this is:

/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents

In StaSh, you can then cd to the folder, and do whatever you want. Note you need to escape the space in the path .../Mobile\ Documents/... when cd'ing.

hlovatt commented 5 years ago

Many thanks. That work great.

-- Howard.

On 25 Mar 2019, at 9:02 am, Dutcho notifications@github.com wrote:

Make below tiny pwd script on iCloud:

import pathlib pathlib.Path.cwd()) Then run the pwd script on your iDevice, and it will tell you the location of the iCloud folder on your iDevice. For me, this is:

/private/var/mobile/Library/Mobile Documents/iCloud~com~omz-software~Pythonista3/Documents In StaSh, you can then cd to the folder, and do whatever you want. Note you need to escape the space in the path .../Mobile\ Documents/... when cd'ing.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.