some changes
This commit is contained in:
12
CHATTER/file_test.py
Normal file
12
CHATTER/file_test.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from pathlib import Path
|
||||
|
||||
# This gets the directory where file_test.py actually lives
|
||||
base_path = Path(__file__).parent
|
||||
user_folder = base_path / "users" / "alice"
|
||||
|
||||
if user_folder.exists() and user_folder.is_dir():
|
||||
# Proceed with login/fetching data
|
||||
print("User exists.")
|
||||
else:
|
||||
# Handle 'User Not Found'
|
||||
print("No such user.")
|
||||
Reference in New Issue
Block a user