Improved error handling.
This commit is contained in:
parent
4eed0c0bec
commit
a549f94037
1 changed files with 1 additions and 1 deletions
|
@ -50,7 +50,7 @@ class Package < ApplicationModel
|
||||||
return if ! File.exist?( path )
|
return if ! File.exist?( path )
|
||||||
data = []
|
data = []
|
||||||
Dir.foreach( path ) do |entry|
|
Dir.foreach( path ) do |entry|
|
||||||
if entry =~ /\.zpm/
|
if entry =~ /\.zpm/ && entry !~ /^\./
|
||||||
data.push entry
|
data.push entry
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue