File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
articles/machine-learning Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -93,17 +93,19 @@ You can also instantiate an Azure Machine Learning filesystem and do filesystem-
93
93
``` python
94
94
from azureml.fsspec import AzureMachineLearningFileSystem
95
95
96
- # instantiate file system using datastore URI
97
- fs = AzureMachineLearningFileSystem(' azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>/datastores/<datastore_name>/paths/<folder>' )
96
+ # instantiate file system using following URI
97
+ fs = AzureMachineLearningFileSystem(' azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>' )
98
+ # 'azureml://subscriptions/<subid>/resourcegroups/<rgname>/workspaces/<workspace_name>/' is also accepted
98
99
99
- # list files in the path
100
- fs.ls()
100
+ fs.ls( ' datastore/datastorename_0) ' ) # list folders/ files in datastore datastorename_0
101
+ # ' fs.ls('datastore/datastorename_0/)')' is also accepted
101
102
# output example:
102
- # /datastore_name/folder/file1.csv
103
- # /datastore_name/folder/file2.csv
103
+ # datastore/datastorename_0/folder1
104
+ # datastore/datastorename_0/folder2
105
+ # datastore/datastorename_0/file1.csv
104
106
105
107
# use an open context
106
- with fs.open(' /datastore_name /folder/file1.csv' ) as f:
108
+ with fs.open(' datastore/datastore_name_0 /folder/file1.csv' ) as f:
107
109
# do some process
108
110
process_file(f)
109
111
```
You can’t perform that action at this time.
0 commit comments