diff options
author | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-12-20 14:09:30 +0100 |
---|---|---|
committer | Haakon Meland Eriksen <haakon.eriksen@far.no> | 2015-12-20 14:09:30 +0100 |
commit | 1cfb83f0036e0ea3cfd216331b59e3280085ca13 (patch) | |
tree | 1fbf9b69c9bbd5fd5ac0ed4e325e29410b7802b8 /include/plugin.php | |
parent | 628e565a6c5ee52341ba6de0b5ecf6495cbb78f8 (diff) | |
parent | e2692a4baaf031bd0d9c0893c3762637b1f6b201 (diff) | |
download | volse-hubzilla-1cfb83f0036e0ea3cfd216331b59e3280085ca13.tar.gz volse-hubzilla-1cfb83f0036e0ea3cfd216331b59e3280085ca13.tar.bz2 volse-hubzilla-1cfb83f0036e0ea3cfd216331b59e3280085ca13.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'include/plugin.php')
-rwxr-xr-x | include/plugin.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/plugin.php b/include/plugin.php index 1f4d60736..4a35a0170 100755 --- a/include/plugin.php +++ b/include/plugin.php @@ -636,3 +636,13 @@ function get_std_version() { return STD_VERSION; return '0.0.0'; } + + +function folder_exists($folder) +{ + // Get canonicalized absolute pathname + $path = realpath($folder); + + // If it exist, check if it's a directory + return (($path !== false) && is_dir($path)) ? $path : false; +}
\ No newline at end of file |