nao-pon
f05b84b0a6
[VD:LocalFileSystem] add an option statCorrector to correct stat data
...
Example for 32bit PHP on armv7l GNU/Linux see #2613
```php
array (
'driver' => 'LocalFileSystem',
'path' => '/path/to/files/',
'statCorrector' => function (&$stat, $path, $statOwner,
$volumeDriveInstance) {
if (isset($stat['size']) && $stat['mime'] !== 'directory') {
if ($stat['size'] == '0') {
// filesize problem for file larger than 4GB ( testing
// in PHP Version 5.4.16)
// https://stackoverflow.com/questions/6482211/php-filesize-over-4gb
$stat['size'] = trim(shell_exec('stat -c %s
'.escapeshellarg($path)));
}
if ($stat['ts'] === false){
// sometime filemtime will failed to return false
$stat['ts'] = (int)trim(shell_exec('stat -c %Y
'.escapeshellarg($path)));
}
}
}
)
```
2018-08-18 14:35:43 +09:00
nao-pon
ebb89bffa7
[VD,cmd:search] fix #2490 support custom search method
...
See the wiki - https://github.com/Studio-42/elFinder/wiki/Custom-search-function
Also closes #1037 .
2018-05-02 17:49:14 +09:00
nao-pon
eafa99fb57
[VD:LocalFileSystem,OneDrive] fix wrong result of isNameExists()
2018-03-21 21:29:45 +09:00
nao-pon
4b5a3091e0
[VD:LocalFileSystem] fix WARNING error of file stat of unreadable items
2018-02-12 00:47:24 +09:00
nao-pon
3e5f9ff29f
[VD:LocalFileSystem] bugfix of cacheing of options['statOwner']
2017-12-26 12:02:19 +09:00
nao-pon
d26ab2a94f
[VD:LocalFileSystem] do not change locale with PHP >= 7.1
2017-12-10 11:40:20 +09:00
nao-pon
5632f2595a
[VD] use elFinder::splitFileExtention()
2017-12-08 13:09:37 +09:00
nao-pon
d406b6fa41
[php] correction to PHP >= 7.1 supported UTF-8 path on Windows
2017-12-06 23:36:40 +09:00
nao-pon
a00985fe9b
[VD:LocalFileSystem] tiny tune of _subdirs()
2017-11-15 13:42:11 +09:00
nao-pon
4ecbf70969
[php:core,VD:LocalFileSystem] perfomance tune of uniqueName()
2017-11-09 13:19:19 +09:00
nao-pon
1b6c78820b
[api] add optional query (int)'substitute' to command dim
...
The connector can return the URL of the substitute image whose size will fit in that pixel as the value of the key 'url' of the result data when the 'substitute' parameter gives with `dim` command from the client.
Add the following two options on the client side config `commandsOptions.resize` to fixes #2251 .
```javascript
// File size (bytes) threshold when using the `dim` command for obtain the image size necessary to start editing
getDimThreshold : 204800,
// File size (bytes) to request to get substitute image (400px) with the `dim` command
dimSubImgSize : 307200
```
2017-10-30 16:46:19 +09:00
Naoki Sawada
751a7fc3a9
[VD:LocalFileSystem] code briefly of 8038741556
2017-09-28 09:23:34 +09:00
arubalucalasagni
8038741556
False errors using the LocalFileSystem Driver and working with empty
...
files #2226
https://github.com/Studio-42/elFinder/issues/2226
2017-09-27 19:55:19 +02:00
nao-pon
01d1511c59
[VD:abstract] fix #2107 do clearstatcache() in abstract class
2017-08-03 17:24:41 +09:00
nao-pon
1cd6cf745e
[VD] fix #2120 item copy between volumes is incomplete
2017-08-03 17:23:23 +09:00
nao-pon
5fcb8c7c9a
[VD:LocalFileSystem] fix problem, directory name "0" is not detected in _subdirs()
2017-06-23 13:37:19 +09:00
nao-pon
70650d2f99
[VD:LocalFileSystem] prevent PHP timeout on _scandir()
2017-06-09 16:23:48 +09:00
nao-pon
ee42f0689f
[VD:abstract,LocalFileSystem] fix #2035 support multipart rar extraction
2017-06-02 15:45:04 +09:00
nao-pon
ce49d6e937
[VD:LocalFileSystem] fix #2009 corrention of an option keepTimestamp(upload)
...
As for chunked `upload`, fixed time stamp was always keeps irrespective of setting, so we fixed it.
2017-05-16 22:20:30 +09:00
nao-pon
cd5cc691e3
[VD:LocalFileSystem] make success the extract by excluding unallowed items
2017-03-27 17:14:00 +09:00
nao-pon
eae1b712e3
[VD:LocalFileSystem] remove debug code
2017-02-24 23:54:41 +09:00
nao-pon
78c36ff2bf
[VD:LocalFileSystem] fix #1910 startPath dose not work currently
2017-02-24 12:02:35 +09:00
nao-pon
c9788461f3
[VD:LocalFileSystem] fix #1882 option copyJoin does not work on extract
2017-02-15 16:41:27 +09:00
nao-pon
1036ec6201
[VD:LocalFileSystem] fix problem in _subdirs() of unreadable dir
2017-02-15 12:16:19 +09:00
nao-pon
a12ea6ec9f
[VD:abstract,LocalFileSystem] fix #1744 results url must be urlencoded
2016-11-14 17:41:37 +09:00
nao-pon
7ef9cb8f84
[VD:LocalFileSystem] fix warning error
2016-08-04 17:49:05 +09:00
nao-pon
db66281569
[VD:LocalFileSystem] fix #1565 dose not support volume option searchTimeout
2016-08-04 14:37:41 +09:00
nao-pon
a626627201
[php] fix warning errors
2016-07-28 10:12:27 +09:00
nao-pon
c166e9de58
[VD:abstract] fix #1553 root stat not refresh when do chmod of root
2016-07-27 11:24:59 +09:00
nao-pon
f92f1be85c
[php] fix CS ^ {4} to \t
2016-07-15 09:35:54 +09:00
nao-pon
9e150c828b
[VD:LocalFileSystem] fix notice error of options['keepTimestamp']
...
for any extended driver
2016-07-13 22:02:09 +09:00
nao-pon
b329043448
[VD:LocalFileSystem] fix mkdir quarantine that option has file path
2016-07-13 21:52:20 +09:00
nao-pon
1b4603e621
[VD:LocalFileSystem] fix warning error in localFileSystemInotify()
2016-07-06 21:05:57 +09:00
nao-pon
2e9f5b3f62
[VD:LocalFileSystem] fix #1494 support root path with drive letter
2016-06-29 09:20:38 +09:00
nao-pon
1b8df316df
[VD:LocalFileSystem] fix warning error in localFileSystemInotify()
2016-05-29 20:31:33 +09:00
nao-pon
e88048a205
[php] add PHP error handler and remove @ error-control operator
2016-05-13 17:13:31 +09:00
nao-pon
f90ebb4b29
[VD:LocalFileSystem] fix #1370 implement function keep timestamp
2016-05-10 13:19:25 +09:00
nao-pon
2a2e441fc9
[VD:LocalFlieSystem] fix #1318 enbug@329593b46d5f36693236d349b06b55bd927b59c1
2016-04-11 10:07:54 +09:00
Dominik
8a1b37bf9e
Revert 9959047
2016-04-08 09:02:02 +02:00
Dominik
9959047901
Fix archive size having leading 0
2016-04-06 15:40:33 +02:00
Dominik
ada89885ac
Add todos for missing return statements
2016-04-06 15:35:07 +02:00
Dominik
16641a68c1
Fix PHPDoc
2016-04-06 15:02:54 +02:00
nao-pon
33e24c4f0d
[VD:LocalFileSyste] fix #1292 enbug @329593b46d5f36693236d349b06b55bd927b59c1
2016-03-29 21:25:15 +09:00
nao-pon
27ba0bb6df
[VD:LocalFileSystem] add symbolic link check on _save()
2016-03-23 17:25:10 +09:00
nao-pon
16146ac1b8
[VD] fix #1266 exclusion serach (SQL, Dropbox are not supported now)
...
- volume root option `searchExDirReg` for excludes directores
```php
// Search exclusion directory regex pattern (require demiliter e.g. '#/path/to/exclude_directory#i')
'searchExDirReg' => '',
```
- Excludes word in serach query with prefix "-" (e.g. "SerachWord -ExcludesWord")
2016-03-16 19:14:28 +09:00
nao-pon
3b16914d28
[VD:LocalFileSystem] fix #1240 search files it's still follow symlinks
2016-03-15 21:08:46 +09:00
nao-pon
329593b46d
[ui] fix #1231 controllable folder icon, ref #1061
...
Case 1
------
**Grant the class name by the client setting**
```javascript
uiOptions : {
tree : {
getClass: function(item) {
return 'elfinder-tree-' + item.name.replace(/[ "]/g,
'').toLowerCase();
}
}
cwd : {
getClass: function(item) {
return 'elfinder-cwd-' + item.name.replace(/[ "]/g,
'').toLowerCase();
}
}
}
```
Case 2
------
**Specifying the file name to be detected as an icon**
**LocalFileSystem ONLY** If there is a ".diricon.png" in a directory it
with the directory icon.
```php
'roots' => array(
array(
'driver' => 'LocalFileSystem',
'path' => '/path/to/files/',
'URL' => 'http://localhost/to/files/ ',
'detectDirIcon' => '.diricon.png'
)
)
```
2016-03-15 18:07:50 +09:00
nao-pon
07723de17b
[VD:LocalFileSystem] fix #1243 Warning error by fclose()
2016-03-09 20:03:58 +09:00
nao-pon
adbba7e2dd
[php] use opendir() instead to scandir()
...
Reson is PHP function scandir() is not work well in specific
environment. I dont know why.
Maybe fixes #1241 , fixes #1247 , fixes #1248
2016-03-09 15:15:46 +09:00
nao-pon
a09f94b1c9
[VD:LocalFileSystem] fix #1240 add config option followSymLinks
...
ref. https://github.com/Studio-42/elFinder/wiki/Connector-configuration-options-2.1#localfilesystem
2016-03-03 22:21:21 +09:00