GH_ExternalFile

References
public class GH_ExternalFile
Represents information about external files to be loaded.

Constructors

GH_ExternalFile

#
public GH_ExternalFile(string path)
Create a new instance of the file info class
path (string)

Properties

FileHash

#
public Guid FileHash { get; }
Gets the file hash.

FileName

#
public string FileName { get; }
Gets the file name (without the extension).

FilePath

#
public string FilePath { get; }
Gets the file path.

FileSize

#
public long FileSize { get; }
Gets the file size (in bytes).

FileType

#
public GH_ExternalFileType FileType { get; }
Gets the file type as indicated by the extension.

Methods

IsIdenticalTo

#
public bool IsIdenticalTo(GH_ExternalFile other)
Compares two files for content. If the size and the hash or the other file are equal to this one, the files are considered identical.
other (GH_ExternalFile)