Changeset 9831 for trunk/tests/phpunit/testcases/core/avatars.php
- Timestamp:
- 05/02/2015 08:55:07 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tests/phpunit/testcases/core/avatars.php
r9819 r9831 15 15 16 16 $this->rrmdir( bp_core_avatar_upload_path() . '/' . $avatar_dir ); 17 }18 19 private function rrmdir( $dir ) {20 $d = glob( $dir . '/*' );21 22 if ( empty( $d ) ) {23 return;24 }25 26 foreach ( $d as $file ) {27 if ( is_dir( $file ) ) {28 $this->rrmdir( $file );29 } else {30 @unlink( $file );31 }32 }33 34 @rmdir( $dir );35 17 } 36 18
Note: See TracChangeset
for help on using the changeset viewer.