mirror of
https://github.com/Kareadita/Kavita.git
synced 2026-05-13 11:02:18 -04:00
Enhanced DirectoryService to exclude System and Hidden folders.
This commit is contained in:
@@ -53,7 +53,7 @@ namespace API.Controllers
|
||||
return Ok(Directory.GetLogicalDrives());
|
||||
}
|
||||
|
||||
if (!Directory.Exists(@path)) return BadRequest("This is not a valid path");
|
||||
if (!Directory.Exists(path)) return BadRequest("This is not a valid path");
|
||||
|
||||
return Ok(_directoryService.ListDirectory(path));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user