existence of files or directories

YoungJoon Suh·2023년 2월 27일
0

from os import path

path.exists('file_name')
This phrase returns a bool value (True or False).
A file ends with its file format, however a directory ends with its folder name.

profile
저는 서영준 입니다.

0개의 댓글