-
Notifications
You must be signed in to change notification settings - Fork 25
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
AFC - put_path doesn't work with directories. #1
Comments
Isn't afc.mkdir what you want here? (serious question, put another way, what's the expected behavior for put_path?) |
mkdir makes a directory - it doesn't copy a directory recursively. put_path should be able to traverse down directories: Copying of a .app, for example, will not work because it is a directory. |
ah ok, I kind-of left recursive AFC operations out intentionally (or left as an exercise to the implementor). That said, it's pretty easy to add one for put_path -- it gets uglier when you want to recursively get, remove, or rename over afc, though. I'll add an AFC.put_recursively and some argument handling to make it work via put_path. But i think the default behavior should still be to operate without recursing. On the subject of recursing via AFC, though:
|
Ok, recursive put support is added as of idevice v1.1.5.6 to use it, either do
or as for recursive get/remove/rename -- those are still left un-implemented pending seeing what happens with adding support for the additional native code AFC operations |
minor tweak added for v1.1.5.7 -- absolute local paths weren't handled correctly, they should be now. Sorry, i should have tested, but i don't want to add rspec device tests until we get recursive removes working, it'll leave crap all over the device... =/ |
afc.put_path doesn't work when trying to place a directory.
The text was updated successfully, but these errors were encountered: