BCE0019: 'GetFiles' is not a member of 'System.IO.DirectoryInfo'.

private function GetCurrentFileInfo () {
dirList = new List.();
fileList = new List.();

var info = new DirectoryInfo(filePath);
if (!info.Exists) {
HandleError (“The directory "” + filePath + “" does not exist”);
return;
}

try {
var fileInfo = info.GetFiles();
var dirInfo = info.GetDirectories();
}
catch (err) {
HandleError (err.Message);
return;
}
i tryed the unity 5.302b on my working project for webgl needs and i got these errors on this piece of code
i uploaded an image of them
Help me please

Accessing the filesystem is not allowed in webgl for security reasons.

Although the page above does not include WebGL, Looking under WebPlayer should give you an idea.