Open willbattel opened 5 years ago
+1
up for this !! we needs this
Go ahead Firebase! Please We needs this!
bucket.file("src/Screenshot (1).png").move("dest/file.png");
works
Note: it will still call onFinalize storage function - if you have thumbnails generation cloud function it will run on every move, so technically no need to move thumbnail files.
Edit: Sorry, did not notice this was ios sdk - i've tested it on admin sdk
Edit2: If there is none in ios sdk, you can set up cloud function that moves files via admin sdk
Currently the only way to relocate a file in Firebase Storage is to delete the original and re-upload to the new location. This usually isn't disastrous, but it's far from optimal. If I'm not mistaken, Google Cloud Storage, which is the backbone for Firebase Storage, does allow file move requests. Is this a feature we could discuss for inclusion in a future version of Firebase Storage?