Already in there (not an extension):https://github.com/NzbDrone/NzbDrone/blob/develop/src/NzbDrone.Common/Disk/DiskProviderBase.cs#L38