Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 41 additions & 4 deletions .vscode/cspell.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"powershell",
"python",
"softwareTerms",
"lorem-ipsum",
"en_us",
"en-gb"
],
Expand Down Expand Up @@ -79,7 +80,6 @@
"sdk/storage/azure-storage-blob-changefeed/**",
"sdk/servicebus/azure-servicebus/**",
"sdk/storage/azure-storage-queue/**",
"sdk/storage/azure-storage-file-datalake/**",
"sdk/synapse/azure-synapse/**",
"sdk/videoanalyzer/azure-media-videoanalyzer-edge/**",
"sdk/synapse/azure-synapse-artifacts/**",
Expand Down Expand Up @@ -155,6 +155,7 @@
"deserialization",
"disablecov",
"docfx",
"dont",
"dotenv",
"dpkg",
"dtlk",
Expand Down Expand Up @@ -234,6 +235,8 @@
"MSSQL",
"mutex",
"myacr",
"mydirectory",
"myfile",
"nazsdk",
"noarch",
"NOPERM",
Expand Down Expand Up @@ -378,7 +381,6 @@
"IOHTTP",
"Zocor",
"dann",
"dont",
"UMLS",
"nach",
"año",
Expand Down Expand Up @@ -546,6 +548,43 @@
"evalue"
]
},
{
"filename": "sdk/storage/azure-storage-file-datalake/**",
"words": [
"dlake",
"rwxrwxrwx",
"rwxrw",
"rwxr",
"ABFS",
"mynewfile",
"mynewdirectory",
"mynewfilesystem",
"mynewfilesystems",
"myfilesystem",
"myfilesystemforlistpaths",
"myfilesystemforgetclient",
"myclientfilesystem",
"mydirectoryfilesystem",
"myleasefilesystem",
"mypathfilesystem",
"mymetadatafilesystemsync",
"fpath",
"fsname",
"dname",
"filesys",
"testfs",
"nonexistentfs",
"saoid",
"testid",
"deletionid",
"cpkfile",
"cpkdirectory",
"cpksubdirectory",
"thead",
"tbody",
"racwdlmeop"
]
},
{
"filename": "sdk/loadtestservice/azure-developer-loadtesting/azure/developer/loadtesting/**",
"words":[
Expand Down Expand Up @@ -681,8 +720,6 @@
"rcwd",
"rcwdl",
"prevsharesnapshot",
"mydirectory",
"myfile",
"mydir",
"amet",
"consectetur",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ def rename_directory(self, new_name, **kwargs):
The value must have the following format: "{filesystem}/{directory}/{subdirectory}".
:keyword source_lease:
A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
the source path must have an active lease and the lease ID must
match.
:paramtype source_lease: ~azure.storage.filedatalake.DataLakeLeaseClient or str
:keyword lease:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ def rename_file(self, new_name, **kwargs):
:keyword ~azure.storage.filedatalake.ContentSettings content_settings:
ContentSettings object used to set path properties.
:keyword source_lease: A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
the source path must have an active lease and the lease ID must
match.
:paramtype source_lease: ~azure.storage.filedatalake.DataLakeLeaseClient or str
:keyword lease:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class StorageStreamDownloader(object):
The properties of the file being downloaded. If only a range of the data is being
downloaded, this will be reflected in the properties.
:ivar int size:
The size of the total data in the stream. This will be the byte range if speficied,
The size of the total data in the stream. This will be the byte range if specified,
otherwise the total size of the file.
"""

Expand All @@ -43,10 +43,10 @@ def read(self, size: Optional[int] = -1) -> bytes:
is unspecified or is -1, all bytes will be read.

:param size:
The number of bytes to download from the stream. Leave unsepcified
The number of bytes to download from the stream. Leave unspecified
or set to -1 to download all bytes.
:returns:
The requsted data as bytes. If the return value is empty, there is no more data to read.
The requested data as bytes. If the return value is empty, there is no more data to read.
:rtype: bytes
"""
return self._downloader.read(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ class PathPropertiesPaged(PageIterator):

:param callable command: Function to retrieve the next page of items.
:param str path: Filters the results to return only paths under the specified path.
:param int max_results: The maximum number of psths to retrieve per
:param int max_results: The maximum number of paths to retrieve per
call.
:param str continuation_token: An opaque continuation token.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -409,7 +409,7 @@ def from_string(cls, permission):
:param str permission: The string which dictates the read, add, create,
write, or delete permissions.
:return: A FileSystemSasPermissions object
:rtype: ~azure.storage.fildatalake.FileSystemSasPermissions
:rtype: ~azure.storage.filedatalake.FileSystemSasPermissions
"""
p_read = 'r' in permission
p_add = 'a' in permission
Expand Down Expand Up @@ -580,7 +580,7 @@ def from_string(cls, permission):
:param str permission: The string which dictates the read, add, create,
write, or delete permissions.
:return: A FileSasPermissions object
:rtype: ~azure.storage.fildatalake.FileSasPermissions
:rtype: ~azure.storage.filedatalake.FileSasPermissions
"""
p_read = 'r' in permission
p_add = 'a' in permission
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ def _rename_path(self, rename_source, **kwargs):
ContentSettings object used to set path properties.
:keyword source_lease:
A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
the source path must have an active lease and the lease ID must
match.
:paramtype source_lease: ~azure.storage.filedatalake.DataLakeLeaseClient or str
:keyword lease:
Expand Down Expand Up @@ -914,7 +914,7 @@ def set_http_headers(self, content_settings=None, # type: Optional[ContentSetti
# type: (...) -> Dict[str, Any]
"""Sets system properties on the file or directory.

If one property is set for the content_settings, all properties will be overriden.
If one property is set for the content_settings, all properties will be overridden.

:param ~azure.storage.filedatalake.ContentSettings content_settings:
ContentSettings object used to set file/directory properties.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ def generate_file_sas(
:param permission:
The permissions associated with the shared access signature. The
user is restricted to operations allowed by the permissions.
Permissions must be ordered racwdmeop.
Permissions must be ordered racwdlmeop.
Required unless an id is given referencing a stored access policy
which contains this field. This field must be omitted if it has been
specified in an associated stored access policy.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ async def rename_directory(self, new_name, # type: str
The value must have the following format: "{filesystem}/{directory}/{subdirectory}".
:keyword source_lease:
A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
the source path must have an active lease and the lease ID must
match.
:paramtype source_lease: ~azure.storage.filedatalake.aio.DataLakeLeaseClient or str
:keyword lease:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ async def rename_file(self, new_name, **kwargs):
:keyword ~azure.storage.filedatalake.ContentSettings content_settings:
ContentSettings object used to set path properties.
:keyword source_lease: A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
the source path must have an active lease and the lease ID must
match.
:paramtype source_lease: ~azure.storage.filedatalake.aio.DataLakeLeaseClient or str
:keyword lease:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class StorageStreamDownloader(object):
The properties of the file being downloaded. If only a range of the data is being
downloaded, this will be reflected in the properties.
:ivar int size:
The size of the total data in the stream. This will be the byte range if speficied,
The size of the total data in the stream. This will be the byte range if specified,
otherwise the total size of the file.
"""

Expand All @@ -43,10 +43,10 @@ async def read(self, size: Optional[int] = -1) -> bytes:
is unspecified or is -1, all bytes will be read.

:param size:
The number of bytes to download from the stream. Leave unsepcified
The number of bytes to download from the stream. Leave unspecified
or set to -1 to download all bytes.
:returns:
The requsted data as bytes. If the return value is empty, there is no more data to read.
The requested data as bytes. If the return value is empty, there is no more data to read.
:rtype: bytes
"""
return await self._downloader.read(size)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class PathPropertiesPaged(AsyncPageIterator):

:param callable command: Function to retrieve the next page of items.
:param str path: Filters the results to return only paths under the specified path.
:param int max_results: The maximum number of psths to retrieve per
:param int max_results: The maximum number of paths to retrieve per
call.
:param str continuation_token: An opaque continuation token.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,7 @@ async def _rename_path(self, rename_source, **kwargs):
:keyword ~azure.storage.filedatalake.ContentSettings content_settings:
ContentSettings object used to set path properties.
:keyword source_lease: A lease ID for the source path. If specified,
the source path must have an active lease and the leaase ID must
the source path must have an active lease and the lease ID must
match.
:paramtype source_lease: ~azure.storage.filedatalake.aio.DataLakeLeaseClient or str
:keyword lease:
Expand Down Expand Up @@ -714,7 +714,7 @@ async def set_http_headers(self, content_settings=None, # type: Optional[Conten
# type: (...) -> Dict[str, Any]
"""Sets system properties on the file or directory.

If one property is set for the content_settings, all properties will be overriden.
If one property is set for the content_settings, all properties will be overridden.

:param ~azure.storage.filedatalake.ContentSettings content_settings:
ContentSettings object used to set file/directory properties.
Expand Down
6 changes: 3 additions & 3 deletions sdk/storage/azure-storage-file-datalake/tests/test_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,7 @@ def test_read_file_with_user_delegation_key(self, **kwargs):
expiry=datetime.utcnow() + timedelta(hours=1),
)

# doanload the data and make sure it is the same as uploaded data
# download the data and make sure it is the same as uploaded data
new_file_client = DataLakeFileClient(self.account_url(datalake_storage_account_name, 'dfs'),
file_client.file_system_name,
file_client.path_name,
Expand Down Expand Up @@ -679,7 +679,7 @@ def test_set_acl_with_user_delegation_key(self, **kwargs):
expiry=datetime.utcnow() + timedelta(hours=1),
)

# doanload the data and make sure it is the same as uploaded data
# download the data and make sure it is the same as uploaded data
new_file_client = DataLakeFileClient(self.account_url(datalake_storage_account_name, 'dfs'),
file_client.file_system_name,
file_client.path_name,
Expand Down Expand Up @@ -726,7 +726,7 @@ def test_preauthorize_user_with_user_delegation_key(self, **kwargs):
preauthorized_agent_object_id="68390a19-a643-458b-b726-408abf67b4fc"
)

# doanload the data and make sure it is the same as uploaded data
# download the data and make sure it is the same as uploaded data
new_file_client = DataLakeFileClient(self.account_url(datalake_storage_account_name, 'dfs'),
file_client.file_system_name,
file_client.path_name,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -739,7 +739,7 @@ def test_list_paths_under_specific_path(self, datalake_storage_account_name, dat

# create a file under the current directory
file_client = subdir.create_file("file")
file_client.append_data(b"abced", 0, 5)
file_client.append_data(b"abced", 0, 5) # cspell:disable-line
file_client.flush_data(5)

generator1 = file_system.get_paths(path="dir10/subdir", max_results=2, upn=True).by_page()
Expand Down Expand Up @@ -852,7 +852,7 @@ def test_get_root_directory_client(self, datalake_storage_account_name, datalake
def test_file_system_sessions_closes_properly(self, datalake_storage_account_name, datalake_storage_account_key):
self._setUp(datalake_storage_account_name, datalake_storage_account_key)
# Arrange
file_system_client = self._create_file_system("fenrhxsbfvsdvdsvdsadb")
file_system_client = self._create_file_system("fenrhxsbfvsdvdsvdsadb") # cspell:disable-line
with file_system_client as fs_client:
with fs_client.get_file_client("file1.txt") as f_client:
f_client.create_file()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ async def test_list_paths_under_specific_path_async(

# create a file under the current directory
file_client = await subdir.create_file("file")
await file_client.append_data(b"abced", 0, 5)
await file_client.append_data(b"abced", 0, 5) # cspell:disable-line
await file_client.flush_data(5)

generator1 = file_system.get_paths(path="dir10/subdir", max_results=2, upn=True).by_page()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def _setUp(self, account_name, account_key):
url = self.account_url(account_name, 'dfs')
self.dsc = DataLakeServiceClient(url, credential=account_key, logging_enable=True)
self.config = self.dsc._config
self.filesystem_name = self.get_resource_name('utqqcontainer')
self.filesystem_name = self.get_resource_name('utqqcontainer') # cspell:disable-line

if not self.is_playback():
try:
Expand Down Expand Up @@ -898,7 +898,7 @@ def test_quick_query_input_in_parquet_format(self, datalake_storage_account_name
file_client = self.dsc.get_file_client(self.filesystem_name, file_name)

expression = "select * from blobstorage where id < 1;"
expected_data = b"0,mdifjt55.ea3,mdifjt55.ea3\n"
expected_data = b"0,mdifjt55.ea3,mdifjt55.ea3\n" # cspell:disable-line

parquet_path = os.path.abspath(os.path.join(os.path.abspath(__file__), "..", "./resources/parquet.parquet"))
with open(parquet_path, "rb") as parquet_data:
Expand Down