Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload and download not working (Unknown or ambiguous command:) #3

Closed
sushi2k opened this issue Jul 26, 2017 · 2 comments
Closed

upload and download not working (Unknown or ambiguous command:) #3

sushi2k opened this issue Jul 26, 2017 · 2 comments

Comments

@sushi2k
Copy link

sushi2k commented Jul 26, 2017

Hi,

I am having issues downloading and uploading files with objection 0.1.1.

iPhone on (iPhone: 10.3.1) [usb] # env
Name                  System    Model    Version
--------------------  --------  -------  ---------
iPhone  iOS       iPhone   10.3.1

Name                           Path
-----------------------------  ------------------------------------------------------------------------------------------------------------
DocumentDirectory              /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Documents
LibraryDirectory               /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library
CachesDirectory                /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library/Caches
BundlePath                     /var/containers/Bundle/Application/242F786B-6916-476E-966F-EF5D9E06A448/foo.app
ApplicationDirectory           /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Applications
DemoApplicationDirectory       /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Applications/Demos
DeveloperApplicationDirectory  /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Developer/Applications
UserDirectory
CoreServiceDirectory
AutosavedInformationDirectory  /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library/Autosave Information
DesktopDirectory               /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Desktop
ApplicationSupportDirectory    /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library/Application Support
ReceiptPath                    /private/var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/StoreKit/sandboxReceipt
ResourcePath                   /var/containers/Bundle/Application/242F786B-6916-476E-966F-EF5D9E06A448/foo.app
iPhone on (iPhone: 10.3.1) [usb] # cd /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Documents
/var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Documents
iPhone on (iPhone: 10.3.1) [usb] # ls
Read Access
Write Access
Type    Perms    Read    Write    Owner    Group    Size    Creation    Name
------  -------  ------  -------  -------  -------  ------  ----------  ------
iPhone on (iPhone: 10.3.1) [usb] # upload /Users/sven/Desktop/Bsd_daemon1.jpg .
Unknown or ambiguous command: `upload /Users/sven/Desktop/Bsd_daemon1.jpg .`. Try `help upload /Users/sven/Desktop/Bsd_daemon1.jpg .`.
iPhone on (iPhone: 10.3.1) [usb] # cd /var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library/Caches
/var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library/Caches
iPhone on (iPhone: 10.3.1) [usb] # ls
Read Access
Write Access
Type                   Perms  Read    Write    Owner         Group         Size     Creation                   Name
-------------------  -------  ------  -------  ------------  ------------  -------  -------------------------  -------------------
NSFileTypeDirectory      493  False   False    mobile (501)  mobile (501)  96.0 B   2017-07-24 07:53:43 +0000  Snapshots
NSFileTypeDirectory      493  True    True     mobile (501)  mobile (501)  160.0 B  2017-07-24 07:51:35 +0000  com.foo.bar
iPhone on (iPhone: 10.3.1) [usb] # cd com.foo.bar
/var/mobile/Containers/Data/Application/8EE1B050-72C2-4341-B020-79915E0645D6/Library/Caches/com.foo.bar
iPhone on (iPhone: 10.3.1) [usb] # ls

Read Access
Write Access
Type                 Perms  Read    Write    Owner         Group         Size      Creation                   Name
-----------------  -------  ------  -------  ------------  ------------  --------  -------------------------  ------------
NSFileTypeRegular      420  True    True     mobile (501)  mobile (501)  52.0 KiB  2017-07-24 07:51:35 +0000  Cache.db
NSFileTypeRegular      420  True    True     mobile (501)  mobile (501)  32.0 KiB  2017-07-24 07:51:35 +0000  Cache.db-shm
NSFileTypeRegular      420  True    True     mobile (501)  mobile (501)  0.0 B     2017-07-24 07:51:35 +0000  Cache.db-wal
iPhone on (iPhone: 10.3.1) [usb] #
iPhone on (iPhone: 10.3.1) [usb] # download Cache.db /Users/sven/Desktop
Unknown or ambiguous command: `download Cache.db /Users/sven/Desktop`. Try `help download Cache.db /Users/sven/Desktop`.
iPhone on (iPhone: 10.3.1) [usb] #
@leonjza
Copy link
Member

leonjza commented Jul 26, 2017

The upload and download commands are subcommands under the file command. Try file upload and file download. It should be possible to hit <TAB> within the REPL to get suggestions of the commands that are available.

The commands recently moved to live under file to reduce the size of the parent menu as more features are added 78571d6.

Let me know if that works for you!

@sushi2k
Copy link
Author

sushi2k commented Jul 26, 2017

Ah, that's why. Sorry I missed that change, as the download command was still "cached" as suggestion for me ;-)
Working now. Thanks a lot for the quick response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants