FileSystem Class

Define a file system class of a DataTransfer Component or Job.

e.g. source_s3 = FileSystem(path='s3://my_bucket/my_folder', connection='azureml:my_s3_connection')

Inheritance
azure.ai.ml.entities._mixins.DictMixin
FileSystem
azure.ai.ml.entities._mixins.RestTranslatableMixin
FileSystem

Constructor

FileSystem(*, path: str | None = None, connection: str | None = None)

Parameters

Name Description
path
Required
str

The path to which the input is pointing. Could be pointing to the path of file system. Default is None.

connection
Required
str

Connection is workspace, we didn't support storage connection here, need leverage workspace connection to store these credential info. Default is None.

Keyword-Only Parameters

Name Description
path
Required
connection
Required

Methods

get
has_key
items
keys
update
values

get

get(key: Any, default: Any | None = None) -> Any

Parameters

Name Description
key
Required
default
Default value: None

has_key

has_key(k: Any) -> bool

Parameters

Name Description
k
Required

items

items() -> list

keys

keys() -> list

update

update(*args: Any, **kwargs: Any) -> None

values

values() -> list