mirror of
https://github.com/stefanpejcic/openpanel
synced 2025-06-26 18:28:26 +00:00
Delete a.py
This commit is contained in:
parent
a7057ec74d
commit
d1cc596874
19
a.py
19
a.py
@ -1,19 +0,0 @@
|
||||
|
||||
import os
|
||||
|
||||
destination_config_dir = '/usr/local/RapidBackup/config/destinations'
|
||||
destinacija = "/etc/passwd /etc/passwd"
|
||||
|
||||
# Show file path
|
||||
def delete_destination():
|
||||
file_path = os.path.join(destination_config_dir, f"{destinacija}.conf")
|
||||
print(file_path)
|
||||
|
||||
try:
|
||||
with open(file_path, 'r') as file:
|
||||
print(file.read())
|
||||
except FileNotFoundError:
|
||||
print("nema")
|
||||
|
||||
|
||||
delete_destination()
|
Loading…
Reference in New Issue
Block a user