mirror of
https://github.com/Lumither/nocturne.git
synced 2026-10-17 18:36:21 +00:00
18 lines
413 B
Python
18 lines
413 B
Python
import os
|
|
from abc import ABC, abstractmethod
|
|
from typing import Dict, Optional
|
|
|
|
|
|
class Template(ABC):
|
|
@abstractmethod
|
|
def init(self):
|
|
pass
|
|
|
|
|
|
def create_all_files(relative_work_path: str, items: Dict[str, Optional[str]]):
|
|
absolute_path = os.path.abspath(relative_work_path)
|
|
for item in items:
|
|
if item.endswith("/"):
|
|
print(absolute_path + item)
|
|
# todo: create files
|