LPX55 commited on
Commit
5eff00e
·
verified ·
1 Parent(s): e4b6492

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -15,6 +15,11 @@ DEFAULT_VERBOSE = 3
15
  DEFAULT_LOGGER_DATE_FORMAT = "%H:%M:%S"
16
  DEFAULT_LOGGER_FORMAT = "%(asctime)s.%(msecs)03d - %(levelname)-8s: %(message)s"
17
 
 
 
 
 
 
18
  files_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
19
  if not os.path.exists(files_dir):
20
  os.makedirs(files_dir)
@@ -24,7 +29,6 @@ with open(os.path.join(files_dir, "sample.txt"), "w") as f:
24
  f.write("This is a sample file for the WebDAV server.")
25
 
26
  print(f"Created 'files' directory with sample.txt at {files_dir}")
27
-
28
  # Configuration
29
  config = {
30
  "provider_mapping": {
 
15
  DEFAULT_LOGGER_DATE_FORMAT = "%H:%M:%S"
16
  DEFAULT_LOGGER_FORMAT = "%(asctime)s.%(msecs)03d - %(levelname)-8s: %(message)s"
17
 
18
+ curr_path = os.path.dirname(os.path.realpath(__file__))
19
+
20
+ print(f"CP: {curr_path}")
21
+ print(f"CWD: {os.getcwd()}")
22
+
23
  files_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "files")
24
  if not os.path.exists(files_dir):
25
  os.makedirs(files_dir)
 
29
  f.write("This is a sample file for the WebDAV server.")
30
 
31
  print(f"Created 'files' directory with sample.txt at {files_dir}")
 
32
  # Configuration
33
  config = {
34
  "provider_mapping": {