Use view class of entry instead of native call

This commit is contained in:
Kevin Sawicki
2013-01-11 13:41:21 -08:00
parent 2cc09988fb
commit c442416c9f

View File

@@ -208,7 +208,7 @@ class TreeView extends ScrollView
entry = @selectedEntry()
return unless entry
oldPath = entry.getPath()
if fs.isFile(oldPath)
if entry instanceof FileView
prompt = "Enter the new path for the file."
else
prompt = "Enter the new path for the directory."