[files] [cleanup/redesign] removed the old file_list structure and also added file listing in setup
This commit is contained in:
parent
44323693f4
commit
04a1916bbd
@ -36,7 +36,7 @@ def update_for_doc(doctype, doc):
|
||||
|
||||
exists = True
|
||||
if not (filename.startswith("http://") or filename.startswith("https://")):
|
||||
if not os.path.exists(os.path.join(webnotes.utils.get_base_path(), "public", "files", filename)):
|
||||
if not os.path.exists(webnotes.utils.get_path("public", "files", filename):
|
||||
exists = False
|
||||
|
||||
if exists:
|
||||
|
Loading…
x
Reference in New Issue
Block a user