Get property for missing disk files raises an error in Windows

This commit is contained in:
Karel Picman 2016-03-02 09:19:00 +01:00
parent a8e8e1b3e5
commit 1fddd2a3f5

View File

@ -538,7 +538,7 @@ module RedmineDmsf
def get_property(element)
raise NotImplemented if (element[:ns_href] != 'DAV:')
unless folder
return NotFound unless (file && file.last_revision && File.exist?(file.last_revision.disk_file))
return NotFound unless (file && file.last_revision)
end
case element[:name]
when 'supportedlock'