Closed daserge closed 8 years ago
Other than the small comment above, this LGTM. DId you try it with mobilespec? Did the new test fail with the old code and does it pass now?
Yes, I've tested it with test-framework plugin.
@dblotsky, thanks for reviewing! Looks like the Android code does not need any changes - I confused targetFile with source, which was not being deleted. I will also improve the test now.
Hey @daserge, the comment about line 453 is still unresolved. According to the docs, we should be using localFilePath
.
@dblotsky, getFile
does work with absolute paths - it successfully resolves /testFile.txt
for example as well as relative (to the fs root) testFile.txt
so I think the bug was in the test and not in this function (it works with filesystem' abstract paths rather than with native ones).
I also don't think it should work with nativeURL - there is resolveLocalFileSystemURL
for this case.
Adds a corresponding test and fixes for iOS and Windows.
Jira issue
Also fixes
filetransfer.spec.9
, which used an incorrect path in theroot.getFile
call.