Skip to content

Commit

Permalink
Merge pull request #2 from fxsth/develop
Browse files Browse the repository at this point in the history
fixed start directory in folder picker in docker linux
  • Loading branch information
fxsth authored Dec 8, 2022
2 parents 4627438 + e0112e4 commit 4f25821
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Web/Controllers/DirectoryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,13 @@ public DirectoryController(ILogger<DirectoryController> logger)
public Task<DirectoryResource> GetDirectories([FromQuery] string? path)
{
if (string.IsNullOrEmpty(path))
path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
{
if (OperatingSystem.IsWindows())
path = Environment.GetFolderPath(Environment.SpecialFolder.MyVideos);
else if (OperatingSystem.IsLinux())
path = "/";
}

IEnumerable<string> list;
try
{
Expand Down

0 comments on commit 4f25821

Please sign in to comment.