MCPcopy Index your code
hub / github.com/pathwaycom/pathway / filesystem

Method filesystem

python/pathway/persistence/__init__.py:27–45  ·  view source on GitHub ↗

Configure the filesystem backend. Args: path: the path to the root directory in the file system, which will be used \ to store the persisted data. Returns: Class instance denoting the filesystem storage backend with root directory \ at ``path``.

(cls, path: str | os.PathLike[str])

Source from the content-addressed store, hash-verified

25
26 @classmethod
27 def filesystem(cls, path: str | os.PathLike[str]):
28 """
29 Configure the filesystem backend.
30
31 Args:
32 path: the path to the root directory in the file system, which will be used \
33to store the persisted data.
34
35 Returns:
36 Class instance denoting the filesystem storage backend with root directory \
37at ``path``.
38 """
39 return cls(
40 api.DataStorage(
41 storage_type="fs",
42 path=os.fspath(path),
43 ),
44 fs_path=path,
45 )
46
47 @classmethod
48 def s3(cls, root_path: str, bucket_settings: AwsS3Settings):

Callers 15

runMethod · 0.80
run_serverMethod · 0.80
replay_configMethod · 0.80
test_cacheFunction · 0.80
test_file_ioFunction · 0.80
pipelineFunction · 0.80
run_pathway_programFunction · 0.80

Calls

no outgoing calls