Replaced makedirs with mkdir to avoid creating indexing root directory if not created by the user

This commit is contained in:
Roberto Rosario
2011-05-24 22:43:27 -04:00
parent d97a862a25
commit a93ccd8f5f

View File

@@ -26,7 +26,7 @@ def fs_create_index_directory(index_instance):
if FILESERVING_ENABLE: if FILESERVING_ENABLE:
target_directory = os.path.join(FILESERVING_PATH, get_instance_path(index_instance)) target_directory = os.path.join(FILESERVING_PATH, get_instance_path(index_instance))
try: try:
os.makedirs(target_directory) os.mkdir(target_directory)
except OSError, exc: except OSError, exc:
if exc.errno == errno.EEXIST: if exc.errno == errno.EEXIST:
pass pass