Skip to content

Commit

Permalink
corec/branch: remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
robUx4 committed Dec 31, 2024
1 parent 224e9d6 commit 3f2782b
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions corec/tools/branch/branch.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,6 @@

redirect_src=[]
redirect_dst=[]
header=[]

def create_missing_dirs(path: str):
new_path = os.path.dirname(os.path.abspath(path))
if os.path.exists(new_path):
return
os.makedirs(new_path)

def compare(srcname: str, dstname: str) -> bool:
if not os.path.exists(dstname):
Expand All @@ -27,9 +20,6 @@ def compare(srcname: str, dstname: str) -> bool:
def copy(srcname: str, dstname: str):
print('{} -> {}'.format(srcname, dstname))

s = os.stat(srcname)
create_missing_dirs(dstname)

shutil.copy2(srcname, dstname)

def match(name: str, mask: str) -> bool:
Expand Down

0 comments on commit 3f2782b

Please sign in to comment.