diff --git a/lib/asset_sync/storage.rb b/lib/asset_sync/storage.rb index f9dfa73..34571e3 100644 --- a/lib/asset_sync/storage.rb +++ b/lib/asset_sync/storage.rb @@ -140,7 +140,7 @@ def get_local_files log "Using: Directory Search of #{path}/#{self.config.assets_prefix}" Dir.chdir(path) do - to_load = self.config.assets_prefix.present? ? "#{self.config.assets_prefix}/**/**" : '**/**' + to_load = self.config.assets_prefix.present? ? File.join(self.config.assets_prefix, '/**/**') : '**/**' Dir[to_load] end end