{I+=codeWee;}
[C#] How do I check if a directory is a file or folder?
using System.IO;

bool IsDirectory(string file)
{
	FileAttributes attr = File.GetAttributes(files[n]);
	if ((attr & FileAttributes.Directory) == FileAttributes.Directory)
		return true;
	else
		return false;
}
HTML | PHP | C++ | DirectX11 | Javascript | C# | HTML5 | ASP | SQL | General | CSS | Oculus Rift | Unity3d | Virtools SDK | Tip | NSIS | PowerShell | node.js | Web API | RTSP | All
Copyright© 2016 CodeWee.com All rights reserved.