Differential D21744 Diff 51838 src/applications/files/engine/PhabricatorLocalDiskFileStorageEngine.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/files/engine/PhabricatorLocalDiskFileStorageEngine.php
Show All 20 Lines | /* -( Engine Metadata )---------------------------------------------------- */ | ||||
} | } | ||||
public function getEnginePriority() { | public function getEnginePriority() { | ||||
return 5; | return 5; | ||||
} | } | ||||
public function canWriteFiles() { | public function canWriteFiles() { | ||||
$path = PhabricatorEnv::getEnvConfig('storage.local-disk.path'); | $path = PhabricatorEnv::getEnvConfig('storage.local-disk.path'); | ||||
$path = phutil_string_cast($path); | |||||
return (bool)strlen($path); | return (bool)strlen($path); | ||||
} | } | ||||
/* -( Managing File Data )------------------------------------------------- */ | /* -( Managing File Data )------------------------------------------------- */ | ||||
/** | /** | ||||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |