modifier.exists.php
1 <?php
2 /**
3  * wCMF - wemove Content Management Framework
4  * Copyright (C) 2005-2020 wemove digital solutions GmbH
5  *
6  * Licensed under the terms of the MIT License.
7  *
8  * See the LICENSE file distributed with this work for
9  * additional information.
10  */
12 
13 /**
14  * Check if the given file path exists.
15  *
16  * Example:
17  * @code
18  * {if $file|exists}
19  * ...
20  * {/if}
21  * @endcode
22  *
23  * @param $path The file path
24  * @return Boolean
25  */
26 function smarty_modifier_exists($path) {
27  return FileUtil::fileExists($path);
28 }
29 ?>
FileUtil provides basic support for file functionality like HTTP file upload.
Definition: FileUtil.php:22