lib/io_streams/paths/sftp.rb in iostreams-1.9.0 vs lib/io_streams/paths/sftp.rb in iostreams-1.10.0

- old
+ new

@@ -140,9 +140,14 @@ # # Example Output: # sftp://sftp.example.org/a/b/c/test.txt {:type=>1, :size=>37, :owner=>"test_owner", :group=>"test_group", # :permissions=>420, :atime=>1572378136, :mtime=>1572378136, :link_count=>1, :extended=>{}} def each_child(pattern = "*", case_sensitive: true, directories: false, hidden: false) + unless block_given? + return to_enum(__method__, pattern, + case_sensitive: case_sensitive, directories: directories, hidden: hidden) + end + Utils.load_soft_dependency("net-sftp", "SFTP glob capability", "net/sftp") unless defined?(Net::SFTP) flags = ::File::FNM_EXTGLOB flags |= ::File::FNM_CASEFOLD unless case_sensitive flags |= ::File::FNM_DOTMATCH if hidden