mirror of
https://github.com/imarkoff/Marble-shell-theme.git
synced 2025-09-24 12:16:34 -07:00
- Fully covered gresource orchestrator and it helpers with tests - Use abstract command runner INSTEAD OF SUBPROCESS in gresources - Replaced some subprocesses by builtin functions
14 lines
322 B
Python
14 lines
322 B
Python
import os
|
|
|
|
|
|
def create_dummy_file(file_path: str, content: str = "dummy content"):
|
|
os.makedirs(os.path.dirname(file_path), exist_ok=True)
|
|
with open(file_path, 'w') as f:
|
|
f.write(content)
|
|
|
|
|
|
def try_remove_file(file_path: str):
|
|
try:
|
|
os.remove(file_path)
|
|
except FileNotFoundError:
|
|
pass |