feat: Filesystem.copy should return new filepath #252
Labels
enhancement
New feature or request
platform: android
platform: ios
platform: web
type: feature request
A new feature, enhancement, or improvement
Feature Request
Description
After copying a file to a new location using
Filesystem.copy
, theCopyResult
object returned is an empty object. It's difficult to determine the full filepath to that new location, so I'd like to request that thepath
gets added to the CopyResult.My use case is moving a photo taken with the official Camera plugin (stored in temp storage, "cache" folder) to permanent storage (data directory). Complete example in the Ionic First App tutorial, where I'm converting the photo to base64 then using
FS.writeFile()
. It'd require much less code to usecopy()
instead.Here's an example use case:
The challenge is understanding what the underlying path of the new file actually is, which is required for many use cases such as displaying the newly captured photo in an app or saving that path for retrieval later (in a database, etc).
Platform(s)
web, ios, android
Preferred Solution
The text was updated successfully, but these errors were encountered: