Initializes the connector for file system type of storage.
See ConnectorFS for details.
Usage
connector_fs(path, extra_class = NULL)
Arguments
- path
character Path to the file storage.
character Extra class to assign to the new connector.
Details
The extra_class
parameter allows you to create a subclass of the
ConnectorFS
object. This can be useful if you want to create
a custom connection object for easier dispatch of new s3 methods, while still
inheriting the methods from the ConnectorFS
object.
Examples
if (FALSE) {
# Create FS connector
cnt <- connector_fs(tempdir())
cnt
# Create subclass connection
cnt_subclass <- connector_fs(
path = tempdir(),
extra_class = "subclass"
)
cnt_subclass
class(cnt_subclass)
}