|
|
|
14년 전
|
조회 2,488
|
|
|
|
14년 전
|
조회 1,187
|
|
|
|
14년 전
|
조회 967
|
|
|
|
14년 전
|
조회 1,542
|
|
|
|
14년 전
|
조회 798
|
|
|
|
14년 전
|
조회 932
|
|
|
|
14년 전
|
조회 1,566
|
|
|
|
14년 전
|
조회 872
|
|
|
|
14년 전
|
조회 1,543
|
|
|
|
14년 전
|
조회 1,167
|
|
|
|
14년 전
|
조회 956
|
|
|
|
14년 전
|
조회 1,515
|
|
|
|
14년 전
|
조회 870
|
|
|
|
14년 전
|
조회 997
|
|
|
|
14년 전
|
조회 1,948
|
|
|
|
14년 전
|
조회 1,526
|
|
|
|
14년 전
|
조회 938
|
|
|
|
14년 전
|
조회 1,710
|
|
|
|
14년 전
|
조회 1,515
|
|
|
|
14년 전
|
조회 963
|
댓글 2개
<?php
$g4_path = '.';
include $g4_path.'/common.php';
$file_dir = "$g4[path]/data/file";
unlink_inside_dir($file_dir);
unlink($file_dir);
function unlink_inside_dir($dir)
{
$d = dir($dir);
while ($entry=$d->read()) {
if ($entry=='.' || $entry=='..') continue;
if (is_dir($dir.DIRECTORY_SEPARATOR.$entry)) unlink_inside_dir($dir.DIRECTORY_SEPARATOR.$entry);
else unlink($dir.DIRECTORY_SEPARATOR.$entry);
}
}
?>
[/code]
위의 코드대로 파일을 그누 폴더에 만들고 실행하세요.
SSH 접속 된다면 SSH 접속 후
( 그누보드 root 기준 )
cd data
ls
여기서, 원하는 폴더를 ls 명령어로 찾습니다.
그다음
rm-rf 폴더명
하시면 됩니다.