fixed destroy method on URA

This commit is contained in:
G. Gibson 2022-04-23 16:05:40 -07:00
parent 602452131c
commit f2a32aa76a

View file

@ -929,7 +929,13 @@ module GxG
end
end
unless result
result = {:result => ::GxG::VFS.destroy(the_path, credential)}
the_profile = self.profile(the_path, credential)
if [:virtual_directory, :directory, :persisted_array].include?(the_profile[:type])
result = {:result => ::GxG::VFS.rmdir(the_path)}
else
result = {:result => ::GxG::VFS.rmfile(the_path)}
end
# xxx
end
result
end