FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
parallel-code-scanning/.github/scripts/list-dirs at main · dassencio/parallel-code-scanning · GitHub
dassencio
parallel-code-scanning
Repository navigation
Code
Issues
1
(1)
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
parallel-code-scanning
/
.github
/
scripts
/
list-dirs
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
15 lines (12 loc) · 429 Bytes
Breadcrumbs
parallel-code-scanning
/
.github
/
scripts
/
list-dirs
Copy path
File metadata and controls
executable file
·
15 lines (12 loc) · 429 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python3
#
# This script prints a JSON array containing all non-hidden subdirectories of
# the current working directory. As an example, if the current working
# directory contains the subdirectories "foo", "bar" and "baz", the output
# will be (the order of the directories is not necessarily alphabetical):
#
# ["foo", "bar", "baz"]
#
import
glob
import
json
print
(
json
.
dumps
(
glob
.
glob
(
"*/"
)).
replace
(
"/"
,
""
))
Back
|
FazBrowse Home
|
New Git URL