Enhanced DirectoryService to exclude System and Hidden folders.

This commit is contained in:
Joseph Milazzo 2020-12-24 09:14:48 -06:00
parent fbe2daac6a
commit b899157015
2 changed files with 19 additions and 9 deletions

View file

@ -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));
}