Interface IMediaPathScheme
Represents a media file path scheme.
Namespace: Umbraco.Core.IO
Assembly: Umbraco.Core.dll
Syntax
public interface IMediaPathScheme
Methods
View SourceGetDeleteDirectory(IMediaFileSystem, String)
Gets the directory that can be deleted when the file is deleted.
Declaration
string GetDeleteDirectory(IMediaFileSystem fileSystem, string filepath)
Parameters
Type | Name | Description |
---|---|---|
IMediaFileSystem | fileSystem | The media filesystem. |
System.String | filepath | The filesystem-relative path of the file. |
Returns
Type | Description |
---|---|
System.String | The filesystem-relative path of the directory. |
Remarks
The directory, and anything below it, will be deleted.
Can return null (or empty) when no directory should be deleted.
GetFilePath(IMediaFileSystem, Guid, Guid, String, String)
Gets a media file path.
Declaration
string GetFilePath(IMediaFileSystem fileSystem, Guid itemGuid, Guid propertyGuid, string filename, string previous = null)
Parameters
Type | Name | Description |
---|---|---|
IMediaFileSystem | fileSystem | The media filesystem. |
System.Guid | itemGuid | The (content, media) item unique identifier. |
System.Guid | propertyGuid | The property type unique identifier. |
System.String | filename | The file name. |
System.String | previous | A previous filename. |
Returns
Type | Description |
---|---|
System.String | The filesystem-relative complete file path. |