FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
TOGA/getfilename.py at main · lanl/TOGA · GitHub
lanl
TOGA
Repository navigation
Code
Issues
Pull requests
1
(1)
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
TOGA
/
getfilename.py
Copy path
More file actions
More file actions
Latest commit
History
History
History
17 lines (13 loc) · 274 Bytes
Breadcrumbs
TOGA
/
getfilename.py
Copy path
File metadata and controls
17 lines (13 loc) · 274 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
16
17
class
FileName
:
def
__init__
(
self
):
self
def
get_filename
(
self
,
ending
):
import
os
,
sys
filenames
=
[]
for
i
in
os
.
listdir
(
os
.
getcwd
()):
if
i
.
endswith
(
ending
):
filenames
.
append
(
i
)
else
:
continue
filenames
.
sort
()
self
.
listfn
=
filenames
Back
|
FazBrowse Home
|
New Git URL