Sha256: 51f6b030c4c51344ea0bb100716ef48c39aeffe4cb94078d29e015aaae28e684
Contents?: true
Size: 1.5 KB
Versions: 13
Compression:
Stored size: 1.5 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>purge_native_file_from_cache (FileCache)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/FileCache.rb, line 125</span> <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">purge_native_file_from_cache</span>(<span class="ruby-identifier">native_file</span>) <span class="ruby-constant">Dir</span>.<span class="ruby-identifier">glob</span>(<span class="ruby-identifier">cache_name_for_native_file</span>(<span class="ruby-identifier">native_file</span>,<span class="ruby-value str">'*'</span>)).<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">filename</span><span class="ruby-operator">|</span> <span class="ruby-constant">RipXploreLog</span>.<span class="ruby-identifier">log</span> <span class="ruby-node">"purging local #{filename}"</span> <span class="ruby-constant">File</span>.<span class="ruby-identifier">delete</span>(<span class="ruby-identifier">filename</span>) <span class="ruby-keyword kw">end</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
13 entries across 9 versions & 1 rubygems