Skip to content
This repository was archived by the owner on Nov 1, 2023. It is now read-only.

Commit 4557b43

Browse files
kananbPorges
andcommitted
Make file check in AZCOPY dir more concise
Co-authored-by: George Pollard <gpollard@microsoft.com>
1 parent ff1b479 commit 4557b43

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/cli/onefuzz/azcopy.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@ def find_azcopy() -> str:
1010
if not os.path.exists(azcopy):
1111
raise Exception(f"AZCOPY environment variable is invalid: {azcopy}")
1212
elif os.path.isdir(azcopy):
13-
contains_azcopy = "azcopy.exe" in [
14-
f for f in os.listdir(azcopy) if os.path.isfile(os.path.join(azcopy, f))
15-
]
13+
contains_azcopy = os.path.isfile(os.path.join(azcopy, "azcopy.exe"))
1614

1715
if contains_azcopy:
1816
azcopy = os.path.join(azcopy, "azcopy.exe")

0 commit comments

Comments
 (0)