mirror of
https://gitlab.com/KKlochko/tui-rsync.git
synced 2026-08-12 17:57:43 +00:00
(Added) path checking function.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
################################################################################
|
||||
|
||||
from peewee import *
|
||||
import os
|
||||
|
||||
db = SqliteDatabase('sync.db')
|
||||
|
||||
@@ -34,6 +35,9 @@ class Path(BaseModel):
|
||||
def __repr__(self) -> str:
|
||||
return f"Path({self.path})"
|
||||
|
||||
def is_exists(self) -> bool:
|
||||
return os.path.exists(self.path)
|
||||
|
||||
class SyncCommand(BaseModel):
|
||||
command = CharField()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user