Commit 743250ebb65bdef0720fe9d417fff96fd9f09b13

Authored by nbm
1 parent 1cd65b26

For Windows, make the file no longer readonly so that it can be removed.

This can happen when the file is extracted from a ZIP file, for example.


git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@5470 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing 1 changed file with 1 additions and 0 deletions
lib/util/ktutil.inc
@@ -278,6 +278,7 @@ class KTUtil { @@ -278,6 +278,7 @@ class KTUtil {
278 KTUtil::deleteDirectory($sFullFilename); 278 KTUtil::deleteDirectory($sFullFilename);
279 continue; 279 continue;
280 } 280 }
  281 + chmod($sFullFilename, 0666);
281 unlink($sFullFilename); 282 unlink($sFullFilename);
282 } 283 }
283 closedir($hPath); 284 closedir($hPath);