#region License
// (c) Intergen.
// This source is subject to the Microsoft Public License (Ms-PL).
// Please see http://go.microsoft.com/fwlink/?LinkID=131993 for details.
// All other rights reserved.
#endregion
using System;
using System.Text;
using System.IO;
using System.Web;
using System.Web.Hosting;
namespace Utilities.IO
{
publicclass FileUtils
{
publicstatic FileSystemInfo GetFileSystemInfo(string path)
{
if (File.Exists(path))
{
returnnew FileInfo(path);
}
elseif (Directory.Exists(path))
{
returnnew DirectoryInfo(path);
}
return null;
}
}
}