Enhanced DirectoryService to exclude System and Hidden folders.
This commit is contained in:
parent
fbe2daac6a
commit
b899157015
2 changed files with 19 additions and 9 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue