Bug 1776364: Add generateifpossible flag to get_local_path
This flag will set whether the function should
attempt to create the file if it doesn't exist.
E.g. image resizes.
This allows an external file system to call
get_local_path with this flag set to false to
skip the processing. This allows an external
file system to avoid an infinate loop when calling
get_local_path to check local file availibility.
Sponsored by Central Queensland University
behatnotneeded
Change-Id: Iaade0b06fcc2cd1755467231e0bafea6b90a99ec
(cherry picked from commit 63d04fd120c2d848e986542ee2368798373cefad)
Reviewed: https:/ /reviews. mahara. org/8961 /git.mahara. org/mahara/ mahara/ commit/ ebc59442e811926 3b56b1a1295a629 5743de3a9d
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: 18.04_STABLE
commit ebc59442e811926 3b56b1a1295a629 5743de3a9d
Author: Kenneth Hendricks <email address hidden>
Date: Tue Jun 12 12:27:42 2018 +1000
Bug 1776364: Add generateifpossible flag to get_local_path
This flag will set whether the function should
attempt to create the file if it doesn't exist.
E.g. image resizes.
This allows an external file system to call
get_local_path with this flag set to false to
skip the processing. This allows an external
file system to avoid an infinate loop when calling
get_local_path to check local file availibility.
Sponsored by Central Queensland University
behatnotneeded
Change-Id: Iaade0b06fcc2cd 1755467231e0baf ea6b90a99ec 8e986542ee23687 98373cefad)
(cherry picked from commit 63d04fd120c2d84