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.
Reviewed: https:/ /reviews. mahara. org/8950 /git.mahara. org/mahara/ mahara/ commit/ 63d04fd120c2d84 8e986542ee23687 98373cefad
Committed: https:/
Submitter: Robert Lyon (<email address hidden>)
Branch: master
commit 63d04fd120c2d84 8e986542ee23687 98373cefad
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