Skip to content

Commit

Permalink
Update sample scripts provided to users in various readme files
Browse files Browse the repository at this point in the history
Signed-off-by: Olamide Ojo <[email protected]>
  • Loading branch information
olamidepeterojo committed Oct 31, 2024
1 parent 765d516 commit 6fccfa7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,5 +145,4 @@ All notable changes to the Zowe Client Python SDK will be documented in this fil
- Fixed exception handling in session.py [#213](https://github.com/zowe/zowe-client-python-sdk/issues/213)

### Bug Fixes
- Updated the sample scripts in readmes to remove/ stop using methods that were deprecated in #276
- Therefore this fixes #336
- Updated the sample scripts in readmes to remove/ stop using methods that were deprecated in #276. [#336](https://github.com/zowe/zowe-client-python-sdk/issues/336)
6 changes: 3 additions & 3 deletions samples/SampleFiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# -----------------------------------------------------
print("...SYS1 datasets\n")
my_files = Files(connection)
my_dsn_list = my_files.list_dsn("SYS1.**.*")
my_dsn_list = my_files.ds.list("SYS1.**.*")
datasets = my_dsn_list["items"]
for ds in datasets:
print(ds["dsname"])
Expand All @@ -19,7 +19,7 @@

# -----------------------------------------------------
print("...files in /etc\n")
my_file_list = my_files.list_files("/etc")
my_file_list = my_files.uss.list("/etc")
files = my_file_list["items"]
for file in files:
print(file["name"], file["mode"])
Expand All @@ -28,5 +28,5 @@
# Get the content of one of the files.
# -----------------------------------------------------
print("...content of a file\n")
my_file_content = my_files.get_file_content("/z/tm891807/file.txt")
my_file_content = my_files.uss.get_content("/z/tm891807/file.txt")
print(my_file_content)

0 comments on commit 6fccfa7

Please sign in to comment.