lib/rapidshare-ext/api.rb in rapidshare-ext-0.0.4 vs lib/rapidshare-ext/api.rb in rapidshare-ext-0.0.5
- old
+ new
@@ -346,10 +346,10 @@
# Fix inconsistent folder tree (Yes, getting a broken folder hierarchy is possible with a stupid Rapidshare API)
# by deleting orphan folders (folders with no parent folder), this folders are invisible in Rapidshare File Manager
# So, this method deletes orphan folders
def remove_orphans!
- @tree = folders_hierarchy
+ @tree = folders_hierarchy :validate => false
@tree.each_pair do |folder_id, data|
@tree.delete_if do |folder_id, data|
if orphan? folder_id
delrealfolder :realfolder => folder_id
true
\ No newline at end of file