Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sirwenhao/Deep-Learning-Notes
/ mk_file
Function
mk_file
CV/data_set/split_data.py:6–10 ·
view source on GitHub ↗
(file_path: str)
Source
from the content-addressed store, hash-verified
4
5
6
def
mk_file(file_path: str):
7
if
os.path.exists(file_path):
8
#如文件夹存在,删除重建
9
rmtree(file_path)
10
os.mkdir(file_path)
11
12
13
def
main():
Callers
1
main
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected