摘要:
//获取文件夹
string path = Server.MapPath("Image");
//获取文件夹中所有图片
if (Directory.GetFileSystemEntries(path).Length 0)
{
//遍历文件夹中所有文件
foreach (string file in Directory.GetFiles(path))
{
//文件己存在
if (File.Exists(file))
{
FileInfo fi = new FileInfo(file);
//判断当前文件属性是否是只读
if (fi.Attributes.ToSt 阅读全文