You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably not urgent, but features that simplify and optimize moving/copying files would be useful. Particularly if we can use steams or existing features of the storage service to make the moves use less memory on functions.
import{bucket}from"@nitric/sdk";constpics=bucket('pics').for('reading','writing');constarchive=bucket('archive').for('reading','writing');// One option - short, but maybe limiting since you couldn't copy between buckets - probably not good.awaitpics.copy('source/pic.jpg','dest/pic-new.jpg');// Other options - allow copying between buckets, but more code.awaitarchive.file('src/pic-new.jpg').copyTo(pics.file('dest/pic.jpg'));awaitarchive.copy('dest/pic.jpg',pics.file('source/pic.jpg'));awaitarchive.copy(archive.file('dest/pic-new.jpg'),pics.file('source/pic.jpg'));awaitarchive.file('dest/pic-new.jpg').copyFrom(pics.file('source/pic.jpg'));awaitpics.file('source/pic.jpg').copyTo(archive.file('dest/pic-new.jpg'))
The text was updated successfully, but these errors were encountered:
Probably not urgent, but features that simplify and optimize moving/copying files would be useful. Particularly if we can use steams or existing features of the storage service to make the moves use less memory on functions.
The text was updated successfully, but these errors were encountered: