Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History
executable file
·
29 lines (19 loc) · 809 Bytes

File metadata and controls

executable file
·
29 lines (19 loc) · 809 Bytes
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import shutil
import os
current_path = os.path.dirname(os.path.abspath(__file__))
os.chdir(current_path)
builds = os.path.join("build", "html")
for i in os.listdir(builds):
full_path = os.path.join(builds, i)
if os.path.exists(i):
if os.path.isfile(i):
os.remove(i)
else: # klasör ise
if i.startswith("_"): # _static klasörü
for file in os.listdir(i):
dir_in_builds = os.path.join(builds, i)
if file not in os.listdir(dir_in_builds):
shutil.move(os.path.join(i, file), dir_in_builds)
shutil.rmtree(i)
shutil.move(full_path, current_path)
##shutil.rmtree("build") # zaten .gitignore'da bulunuyor
Morty Proxy This is a proxified and sanitized view of the page, visit original site.