Skip to content

Commit

Permalink
fixed start directory in folder picker in docker linux
Browse files Browse the repository at this point in the history
  • Loading branch information
fxsth committed Dec 8, 2022
1 parent 4627438 commit e0112e4
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 e0112e4

Please sign in to comment.