Copies file from srcPath to dstPath.
Copies file from srcPath to dstPath. Stores should optimize to use native copy functions to avoid data transfer.
path
path
F[Unit]
Get bytes for the given Path.
Get bytes for the given Path. See StoreOps.GetOps for convenient get and getContents methods.
to get
bytes to read in each chunk.
stream of bytes
List paths.
List paths. See StoreOps.ListOps for convenient listAll method.
to list
stream of Paths. Implementing stores must guarantee that returned Paths have correct values for size, isDir and lastModified.
Moves file from srcPath to dstPath.
Moves file from srcPath to dstPath. Stores should optimize to use native move functions to avoid data transfer.
path
path
F[Unit]
Provides a Sink that writes bytes into the provided path.
Provides a Sink that writes bytes into the provided path. See StoreOps.PutOps for convenient put String and put file methods.
It is highly recommended to provide Path.size when writing as it allows for optimizations in some store.
to put
sink of bytes. This throws an exception if a file at this path already exists.
Creates a BoxFolder at this path and all folders along this path.
Creates a BoxFolder at this path and all folders along this path. If the path already exists, this will simply traverse the path and return the folder at this path. NOTE: this method makes Box API calls
a BoxFolder at this path
Remove file for given path.
Helper method to split a path into a list representing its folder path, and a string representing its file name.