# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

# # 파일과 폴더의 관리
# Django 등에서 크롤링한 데이터 수집 및 저장 관리용 Manual

import os

# 해당 경로가 포함여부 확인
os.path.isdir('./ML/Pytorch')

os.mkdir('./ML/data')

os.mkdir('./Test')

os.mkdir('./Test/data')

os.rmdir('./Test/data/')

os.rmdir('./Test/')

# ls

try:
    if not(os.path.isdir({YOUR_DIRECTORY_NAME})):
        os.makedirs(os.path.join({YOUR_DIRECTORY_NAME}))
except OSError as e:
    if e.errno != errno.EEXIST:
        print("Failed to create directory!!!!!")
        raise








from glob import glob
file_list = glob('../../React/DjApps/AvSubs/static/smi/*.*')

len(file_list)

import re
[_ for _ in file_list  if _.lower().find('ipx') != -1]

'test'.lower()



StarcoderdataJupyterScriptsDedupFiltered