[files] [cleanup/redesign] removed the old file_list structure and also added file listing in setup

This commit is contained in:
Rushabh Mehta 2013-04-10 13:57:08 +05:30
parent 44323693f4
commit 04a1916bbd

View File

@ -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: