StoreOps
This object contains shared implementations of functions that requires additional capabilities from the effect type
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
Value members
Concrete methods
Put sink that buffers all incoming bytes to local filesystem, computes buffered data size, then puts bytes to store. Useful when uploading data to stores that require content size like S3Store.
Put sink that buffers all incoming bytes to local filesystem, computes buffered data size, then puts bytes to store. Useful when uploading data to stores that require content size like S3Store.
Value parameters
- url
-
Path to write to
Attributes
- Returns
-
Sink[F, Byte] buffered sink
getContents with default UTF8 decoder
getContents with default UTF8 decoder
Value parameters
- url
-
Url to get
Attributes
- Returns
-
F[String] with file contents
Decode get bytes from path into a string using decoder and return concatenated string.
Decode get bytes from path into a string using decoder and return concatenated string.
USE WITH CARE, this loads all file contents into memory.
Value parameters
- decoder
-
Pipe[F, Byte, String]
- url
-
Path to get
Attributes
- Returns
-
F[String] with file contents
get src path and write to local file system
get src path and write to local file system
Value parameters
- dst
-
local file to write contents to
- src
-
Path to get
Attributes
- Returns
-
F[Unit]
Collect all list results in the same order as the original list Stream
Collect all list results in the same order as the original list Stream
Value parameters
- url
-
Url to list
Attributes
- Returns
-
F[List[Url]] with all items in the result
Write contents of src file into dst Path
Write contents of src file into dst Path
Value parameters
- dst
-
Path to write to
- src
-
java.nio.file.Path
Attributes
- Returns
-
F[Unit]
Remove all files from a store recursively, given a path
Remove all files from a store recursively, given a path
Attributes
Copy value of the given path in this store to the destination store.
Copy value of the given path in this store to the destination store.
This method will list item at srcUrl and copy it to dstUrl in dstStore. If srcUrl points to a directory, it will copy files inside recursively.
Value parameters
- dstStore
-
destination store
- dstUrl
-
url to transfer to (if srcUrl points to a directory, interpreted as a prefix)
- srcUrl
-
url to transfer from (can be a path to a file or directory)
Attributes
- Returns
-
F[Int] number of files transferred