diff --git a/README.md b/README.md index 3e50ee4..8014789 100644 --- a/README.md +++ b/README.md @@ -74,6 +74,10 @@ $content = $filesystem->read('path/to/my/file.txt'); $resource = $filesystem->readResource('path/to/my/file.txt'); $success = $filesystem->createDir('new/directory/here'); $success = $filesystem->rename('path/to/my/file.txt', 'some/other/folder/another.txt'); + +// The URL of a file can be found like this: + +$url = $filesystem->getAdapter()->getUrl('path/to/my/foo.bar'); ``` ## Testing diff --git a/src/AzureFileAdapter.php b/src/AzureFileAdapter.php index 872978e..caeeeea 100644 --- a/src/AzureFileAdapter.php +++ b/src/AzureFileAdapter.php @@ -68,7 +68,7 @@ public function __construct(IFile $azureClient, $config = [], $prefix = null) * @param string $pathName the normalised file pathname * @return string URL for the file, needed for some API methods */ - protected function getUrl($pathName) + public function getUrl($pathName) { return sprintf( '%s%s/%s',