mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
commit miss...
* sample/tkextlib/treectrl/explorer.rb: File.executable? returns true even if it's plain text file. (this function only checks access right) again. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@8296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
2d3b81755d
commit
53d7b3df7d
1 changed files with 1 additions and 5 deletions
|
@ -143,13 +143,9 @@ def demoExplorerDetails(t)
|
|||
img = 'small-exe'
|
||||
when '.txt'
|
||||
img = 'small-txt'
|
||||
else
|
||||
if FileTest.executable?(file)
|
||||
img = 'small-exe'
|
||||
else
|
||||
img = 'small-file'
|
||||
end
|
||||
end
|
||||
|
||||
type = ext.upcase
|
||||
type = type[1..-1] << ' ' unless type.empty?
|
||||
|
|
Loading…
Reference in a new issue