Open ghost opened 10 years ago
I found that setting :prefix in #18 caused this. Changing line 23 in lib/asset_sync/storage.rb to
@bucket ||= connection.directories.get(self.config.fog_directory)
fixed delete functionality for me. I'll keep looking for a better solution.
Using asset_sync via middleman-sync, I found that no files are actually retrieved from the given bucket, so existing_remote_files = 'delete' flags no files for deletion.
Comparing lib/asset_sync/storage.rb with fog's delete_file.rb example, bucket.files should return 37 files in this container, but instead comes up empty in
get_remote_files
I modified
% sed -n 98,107p ~/.gem/ruby/2.1.0/gems/asset_sync-1.0.0/lib/asset_sync/storage.rb ~/.gem/ruby/2.1.0/gems/asset_sync-1.0.0/lib/asset_sync/storage.rb
which shows that the Fog::Storage::Rackspace::Directory has 37 files (which it does), but
ap bucket.files
just prints the square brackets of an empty array.% middleman sync