Patch #4254

Cache_File:: _delete_file & SVN project

Added by Tomasz Ślązok 8 months ago. Updated 8 months ago.

Status:Closed Start date:09/11/2011
Priority:Normal Due date:
Assignee:- % Done:

100%

Category:-
Target version:Kohana v3.x - v3.2.1
Resolution: Points:1

Description

In Cache config is array ignore_on_delete with default values:

'.gitignore',
'.git' ,
'.svn' ,

When Cache_File::_delete_file() is executed it check if filename is not this ignore_on_delete but only if it's file, not a directory.

SVN project have a lot of .svn directory (not .svn file). Cache_File try to delete all files in .svn directory.

Checking ignore_on_delete in deleting directory will fix the problem.


Related issues

related to Cache - Bug Report #4130: Deleting cache and ignored files Kohana v3.x - v3.2.1 Closed 07/25/2011

Associated revisions

Revision cc2be0f8
Added by Sam de Freyssinet 8 months ago

Fixes #4254, #4195, #4130 Cache File driver now avoids deleting Subversion folders.

Additionally the driver will unlink all SplFileObjects before attempting to remove the folder, fixing issues on Windows

History

Updated by Sam de Freyssinet 8 months ago

  • Project changed from Kohana v3.x to Cache
  • Category deleted (Modules:Cache)

Updated by Sam de Freyssinet 8 months ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF