Changeset 26928 for trunk/admin/include
- Timestamp:
- Jan 23, 2014, 8:29:42 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions.php
r26922 r26928 535 535 function get_fs_directories($path, $recursive = true) 536 536 { 537 global $conf; 538 537 539 $dirs = array(); 538 540 $path = rtrim($path, '/'); 539 541 542 $exclude_folders = array_merge( 543 $conf['sync_exclude_folders'], 544 array( 545 '.', '..', '.svn', 546 'thumbnail', 'pwg_high', 547 'pwg_representative', 548 ) 549 ); 550 $exclude_folders = array_flip($exclude_folders); 551 540 552 if (is_dir($path)) 541 553 { … … 544 556 while (($node = readdir($contents)) !== false) 545 557 { 546 if ($node != '.' 547 and $node != '..' 548 and $node != '.svn' 549 and $node != 'thumbnail' 550 and $node != 'pwg_high' 551 and $node != 'pwg_representative' 552 and is_dir($path.'/'.$node)) 558 if (is_dir($path.'/'.$node) and !isset($exclude_folders[$node])) 553 559 { 554 560 $dirs[] = $path.'/'.$node;
Note: See TracChangeset
for help on using the changeset viewer.