MCPcopy Create free account
hub / github.com/error311/FileRise / baseDir

Method baseDir

src/FileRise/Storage/SourcesConfig.php:62–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

60 }
61
62 private static function baseDir(): string
63 {
64 $base = defined('FR_PRO_BUNDLE_DIR') ? rtrim((string)FR_PRO_BUNDLE_DIR, "/\\") : '';
65 if ($base === '') {
66 $base = rtrim((string)USERS_DIR, "/\\") . DIRECTORY_SEPARATOR . 'pro';
67 }
68 return $base;
69 }
70
71 private static function filePath(): string
72 {

Callers 2

filePathMethod · 0.95
ensureDirMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected