mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
Remove commented code
--HG-- branch : dev
This commit is contained in:
parent
14101b1843
commit
d8266701d5
@ -41,21 +41,6 @@ namespace Orchard.FileSystems.WebSite {
|
||||
}
|
||||
return (from VirtualFile file in HostingEnvironment.VirtualPathProvider.GetDirectory(virtualPath).Files
|
||||
select file.VirtualPath).Concat(ListFiles(ListDirectories(virtualPath)));
|
||||
/*
|
||||
|
||||
var path = HostingEnvironment.MapPath(virtualPath);
|
||||
if (path == null || !Directory.Exists(path)) {
|
||||
return Enumerable.Empty<string>();
|
||||
}
|
||||
|
||||
if (!path.EndsWith("\\")) {
|
||||
path += "\\";
|
||||
}
|
||||
|
||||
var files = Directory.GetFiles(path, searchPattern, recursive ? SearchOption.AllDirectories : SearchOption.TopDirectoryOnly);
|
||||
// strip base path to make it relative and replace '\' with '/'
|
||||
return from file in files
|
||||
select "~/" + file.Replace(path, "").Replace("\\", "/");*/
|
||||
}
|
||||
|
||||
public bool FileExists(string virtualPath) {
|
||||
|
Loading…
Reference in New Issue
Block a user