public FileDescription(string filePath) { m_isRemote = Regex.IsMatch(filePath, "^ftp:.*|https?:.*|s3:.*|data:[^;]*;base64,([a-zA-Z0-9/+\n=]+)"); m_path = filePath; if (!m_isRemote) m_name = Path.GetFileNameWithoutExtension(m_path); else m_name = m_path; }