lib/vos/drivers/ssh_vfs_storage.rb in vos-0.3.8 vs lib/vos/drivers/ssh_vfs_storage.rb in vos-0.3.9
- old
+ new
@@ -81,10 +81,12 @@
def delete_dir path
exec "rm -r #{path}"
end
- def each_entry path, &block
+ def each_entry path, query, &block
+ raise "SshVfsStorage not support :each_entry with query!" if query
+
sftp.dir.foreach path do |stat|
next if stat.name == '.' or stat.name == '..'
if stat.directory?
block.call stat.name, :dir
else
\ No newline at end of file