I have to delete files from wwwroot\\images
programatically. Is there some kind of FileManager in ASP.Net 5 rc1?
You can use the System.IO
namespace by including it in your platform dependencies;
...
"frameworks": {
"dnx451": { },
"dnxcore50": {
"dependencies": {
"System.IO": "..."
}
}
},
...
And using File.Delete(pathToFile)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.