Copy file to clipboard
This commit is contained in:
@@ -16,4 +16,5 @@ public interface ITimelessContentProvider
|
||||
|
||||
Task<IItem?> GetItemByNativePathAsync(NativePath nativePath, PointInTime? pointInTime = null);
|
||||
FullName? GetFullNameByNativePath(NativePath nativePath);
|
||||
NativePath? GetNativePathByFullName(FullName fullName);
|
||||
}
|
||||
@@ -56,4 +56,16 @@ public class TimelessContentProvider : ITimelessContentProvider
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
public NativePath? GetNativePathByFullName(FullName fullName)
|
||||
{
|
||||
foreach (var contentProvider in _contentProviderRegistry.ContentProviders)
|
||||
{
|
||||
if(!contentProvider.CanHandlePath(fullName)) continue;
|
||||
|
||||
return contentProvider.GetNativePath(fullName);
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user