зеркало из https://github.com/github/ruby.git
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:
Родитель
2d3b81755d
Коммит
53d7b3df7d
|
@ -144,11 +144,7 @@ def demoExplorerDetails(t)
|
|||
when '.txt'
|
||||
img = 'small-txt'
|
||||
else
|
||||
if FileTest.executable?(file)
|
||||
img = 'small-exe'
|
||||
else
|
||||
img = 'small-file'
|
||||
end
|
||||
img = 'small-file'
|
||||
end
|
||||
|
||||
type = ext.upcase
|
||||
|
|
Загрузка…
Ссылка в новой задаче