Index: trunk/phase3/includes/filerepo/backend/FSFileBackend.php |
— | — | @@ -463,12 +463,14 @@ |
464 | 464 | $exists = is_dir( $dir ); |
465 | 465 | wfRestoreWarnings(); |
466 | 466 | if ( !$exists ) { |
| 467 | + wfDebug( __METHOD__ . "() given directory does not exist: '$dir'\n" ); |
467 | 468 | return array(); // nothing under this dir |
468 | 469 | } |
469 | 470 | wfSuppressWarnings(); |
470 | 471 | $readable = is_readable( $dir ); |
471 | 472 | wfRestoreWarnings(); |
472 | 473 | if ( !$readable ) { |
| 474 | + wfDebug( __METHOD__ . "() given directory is unreadable: '$dir'\n" ); |
473 | 475 | return null; // bad permissions? |
474 | 476 | } |
475 | 477 | return new FSFileBackendFileList( $dir ); |