| @@ 788-800 (lines=13) @@ | ||
| 785 | return $result; |
|
| 786 | } |
|
| 787 | ||
| 788 | function isWritable($location) { |
|
| 789 | if ( !file_exists($location) ) { |
|
| 790 | while ( true ) { |
|
| 791 | $location = dirname($location); |
|
| 792 | ||
| 793 | if ( file_exists($location) ) { |
|
| 794 | break; |
|
| 795 | } |
|
| 796 | } |
|
| 797 | } |
|
| 798 | ||
| 799 | return is_writable($location); |
|
| 800 | } |
|
| 801 | ||
| 802 | function rmdir($dir) { |
|
| 803 | foreach ( scandir($dir) as $file ) { |
|
| @@ 840-852 (lines=13) @@ | ||
| 837 | return $result; |
|
| 838 | } |
|
| 839 | ||
| 840 | function isWritable($location) { |
|
| 841 | if ( !file_exists($location) ) { |
|
| 842 | while ( true ) { |
|
| 843 | $location = dirname($location); |
|
| 844 | ||
| 845 | if ( file_exists($location) ) { |
|
| 846 | break; |
|
| 847 | } |
|
| 848 | } |
|
| 849 | } |
|
| 850 | ||
| 851 | return is_writable($location); |
|
| 852 | } |
|
| 853 | ||
| 854 | function rmdir($dir) { |
|
| 855 | foreach ( scandir($dir) as $file ) { |
|