DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
pathlib check is file
from
pathlib
import
Path my_file
=
Path
(
"/path/to/file"
)
if
my_file
.
is_file
(
)
:
# file exists
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#pathlib
#check
#file
ADD COMMENT
Topic
COMMENT
Name
2+5 =
Submit