Hi,I'm trying to use the nice Fog abstractions, but it looks like I'm missing a feature.Context=======I'm simulating subdirectories in an S3 bucket through a structure like this:ex/aex/bex/c/ex/c/dex/c/eex/c/d and ex/c/e are in the ex/c "subdirectory".Problem=======With Fog::Storage::AWS::Directory, it seems one cannot list that "ex/" contains "ex/a", "ex/b" and the "subdirectory" "ex/c/".Only the files can be listed:> puts Fog::Storage[:aws].directories.get('hello').files.all(prefix: 'ex/', delimiter: '/').collect do |f|f.keyend.join ', 'ex/, ex/a, ex/bAmazon API==========If I were to issue a direct call, I could actually see the files and subdirectories:> r = Fog::Storage[:aws].get_bucket('hello', prefix: 'ex/', delimiter: '/').data[:body]> puts r['Contents'].collect {|c| c['Key']}.join ' '
ex/ ex/a ex/b> puts r['CommonPrefixes'].join ' 'ex/c/Wrap-up=======I don't think those "subdirectories" are exposed in the nice Fog::Storage::AWS::Directory API.If they are already, I'd appreciate a pointer.If they aren't, is that something you'd consider?Thanks,--Pierre--
You received this message because you are subscribed to the Google Groups "ruby-fog" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ruby-fog+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Thanks,--Pierre--