| @@ 42-49 (lines=8) @@ | ||
| 39 | // Remove the file list obtained from the DB |
|
| 40 | $path = array(); |
|
| 41 | $cnt = count($files); |
|
| 42 | for($i=0;$i<$cnt;$i++) |
|
| 43 | { |
|
| 44 | $uploaded_filename = $files[$i]->uploaded_filename; |
|
| 45 | FileHandler::removeFile($uploaded_filename); |
|
| 46 | ||
| 47 | $path_info = pathinfo($uploaded_filename); |
|
| 48 | if(!in_array($path_info['dirname'], $path)) $path[] = $path_info['dirname']; |
|
| 49 | } |
|
| 50 | // Remove a file directory of the document |
|
| 51 | for($i=0;$i<count($path);$i++) FileHandler::removeBlankDir($path[$i]); |
|
| 52 | ||
| @@ 893-900 (lines=8) @@ | ||
| 890 | // Delete the file |
|
| 891 | $path = array(); |
|
| 892 | $file_count = count($file_list); |
|
| 893 | for($i=0;$i<$file_count;$i++) |
|
| 894 | { |
|
| 895 | $this->deleteFile($file_list[$i]->file_srl); |
|
| 896 | ||
| 897 | $uploaded_filename = $file_list[$i]->uploaded_filename; |
|
| 898 | $path_info = pathinfo($uploaded_filename); |
|
| 899 | if(!in_array($path_info['dirname'], $path)) $path[] = $path_info['dirname']; |
|
| 900 | } |
|
| 901 | ||
| 902 | // Remove from the DB |
|
| 903 | $args = new stdClass(); |
|