Apachai.StaticContentModule.ValidFile C# (CSharp) Method

ValidFile() private method

private ValidFile ( string path ) : bool
path string
return bool
        bool ValidFile(string path)
        {
            try {
                string fullPath = Path.GetFullPath (path);
                return fullPath.StartsWith (rootedPath);
            } catch {
                return false;
            }
        }