Linuxias
Developer's Delight
Linuxias
  • Category
    • AI
      • Deep Learning
      • Machine Learning
      • Data Science
      • Framework
      • MLOps
      • Paper-Review
      • Tips
    • Android
      • Kotlin
      • Component
      • Compose
      • Compose UI
      • Material
      • Testing
    • Software Architecture
      • Architecture Pattern
      • Design Pattern
      • Requirement Engineering
    • Linux
      • Compile & Link
      • Command & Tool
      • Container
      • Debugging & Testing
      • Profiling
      • Kernel Analysis
      • Server
      • Shell Script
      • System Programming
    • Language
      • Carbon
      • C,C++
      • C#
      • Java
      • Python
    • ETC
      • Data Struct | Algorithm
      • git
      • Security
    • Book
    • 경제공부
      • 세금
      • 부동산
hELLO · Designed By 정상우.
Linuxias

Developer's Delight

Language/Python

file, directory 존재여부 확인하기

2017. 12. 16. 18:21
반응형

import os
 
os.path.exists(path)
 
os.path.isdir(path)
 
os.path.isfile(path)
 



반응형
저작자표시 (새창열림)

'Language > Python' 카테고리의 다른 글

[Python] 문자열에 문자열 리스트의 요소가 포함되어 있는지 찾기  (1) 2019.03.20
[python] isinstance  (0) 2019.03.12
RSS feed parsing 하기  (0) 2018.11.15
if __name__ == "__main__"  (0) 2017.12.18
BeautifulSoup 이용해서 html parsing하기  (0) 2017.12.16
    'Language/Python' 카테고리의 다른 글
    • [python] isinstance
    • RSS feed parsing 하기
    • if __name__ == "__main__"
    • BeautifulSoup 이용해서 html parsing하기
    Linuxias
    Linuxias
    I want to be a S/W developer who benefits people.

    티스토리툴바