public StreamAttributes Attributes(string logicalPath) { // If there's a wrapping zip, return the attributes for it with the base path StreamAttributes zipAttributes = _inner.Attributes(logicalPath + ".zip"); if (zipAttributes.Exists) { zipAttributes.Path = logicalPath; return(zipAttributes); } return(_inner.Attributes(logicalPath)); }
public StreamAttributes Attributes(string logicalPath) { // Use the local file first, if found StreamAttributes attributes = LocalProvider.Attributes(logicalPath); // Return remote metadata instead if the local doesn't exist and the remote does if (!attributes.Exists) { StreamAttributes remoteAttributes = RemoteProvider.Attributes(logicalPath); if (remoteAttributes.Exists) { attributes = remoteAttributes; } } return(attributes); }