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'
)
)
```
Set client configuration option `sync` to enable auto sync.
Example
```javascript
var options = {
url : 'php/connector.php',
sync : 10000 // Checks every 10sec
}
$('#elfinder').elfinder(options);
```
And added new volume driver root options this time.
```php
// Is support parent directory time stamp update on add|remove|rename item
// Default `null` is auto detection that is LocalFileSystem, FTP or
// Dropbox are `true`
'syncChkAsTs' => null,
// Long pooling sync checker function for syncChkAsTs is true
// Calls with args (TARGET DIRCTORY PATH, STAND-BY(sec), OLD TIMESTAMP, VOLUME DRIVER INSTANCE, ELFINDER INSTANCE)
// This function must return the following values. Changed: New Timestamp or Same: Old Timestamp or Error: false
// Default `null` is try use
// elFinderVolumeLocalFileSystem::localFileSystemInotify() on LocalFileSystem driver
// another driver use elFinder stat() checker
'syncCheckFunc'=> null,
// Long polling sync stand-by time (sec)
'plStandby' => 30,
// Sleep time (sec) for elFinder stat() checker (syncChkAsTs is true)
'tsPlSleep' => 10,
// Sleep time (sec) for elFinder ls() checker (syncChkAsTs is false)
'lsPlSleep' => 30,
// Client side sync interval minimum (ms)
// Default `null` is auto set to ('tsPlSleep' or 'lsPlSleep') * 1000
'syncMinMs' => null,
```