summary refs log tree commit diff
path: root/extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-02-20 03:17:51 +0100
committerRory& <root@rory.gay>2026-02-20 03:20:33 +0100
commitad2e2193a8ab48f01da83255536f72ee19f36eba (patch)
tree6209224cd987d00cac25feb306ea228ccd03344b /extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs
parentUpdate message component type to match upstream (diff)
downloadserver-ts-ad2e2193a8ab48f01da83255536f72ee19f36eba.tar.xz
C# deps
Diffstat (limited to 'extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs')
-rw-r--r--extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs3
1 files changed, 3 insertions, 0 deletions
diff --git a/extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs b/extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs

index a5cee2c0b..3bdee1132 100644 --- a/extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs +++ b/extra/admin-api/Interop/Spacebar.Interop.Cdn.Abstractions/FilesystemFileSource.cs
@@ -46,4 +46,7 @@ public class FilesystemFileSource(string baseUrl) : IFileSource { // using var mic = new MagickImageCollection(stream); // return Mimes.GetMime(mic.First().Format); // } + public Task<bool> DirectoryExists(string path) { + return Task.FromResult(Directory.Exists(Path.Join(baseUrl, path))); + } } \ No newline at end of file