Filters
2 years ago
Scanning
5 years ago
DebugLogReader.php
2 years ago
DirectoryListing.php
2 years ago
DiskWriteCheck.php
3 years ago
FileObject.php
2 years ago
Filesystem.php
1 year ago
FilesystemExceptions.php
5 years ago
FilterableDirectoryIterator.php
2 years ago
LogCleanup.php
2 years ago
LogFiles.php
2 years ago
MissingFileException.php
3 years ago
OPcache.php
2 years ago
PathChecker.php
2 years ago
PathIdentifier.php
2 years ago
Permissions.php
5 years ago
WpUploadsFolderSymlinker.php
5 years ago
Permissions.php
32 lines
| 1 | <?php |
| 2 | |
| 3 | namespace WPStaging\Framework\Filesystem; |
| 4 | |
| 5 | class Permissions |
| 6 | { |
| 7 | /** |
| 8 | * @return int |
| 9 | */ |
| 10 | public function getDirectoryOctal() |
| 11 | { |
| 12 | $octal = 0755; |
| 13 | if (defined('FS_CHMOD_DIR')) { |
| 14 | $octal = FS_CHMOD_DIR; |
| 15 | } |
| 16 | |
| 17 | return apply_filters('wpstg_folder_permission', $octal); |
| 18 | } |
| 19 | |
| 20 | /** |
| 21 | * @return int |
| 22 | */ |
| 23 | public function getFilesOctal() |
| 24 | { |
| 25 | if (defined('FS_CHMOD_FILE')) { |
| 26 | return FS_CHMOD_FILE; |
| 27 | } |
| 28 | |
| 29 | return 0644; |
| 30 | } |
| 31 | } |
| 32 |