Click or drag to resize

GH_ComponentServerCopyFileToAppropriateFolder Method

Copy a GHA or GHUSER file into the appropriate Roaming Application Data folder. Of the file is already in the top-level roaming folder it will not be copied.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
Syntax
public static string CopyFileToAppropriateFolder(
	string filepath,
	bool moveOriginalToBin
)

Parameters

filepath
Type: SystemString
The file to copy.
moveOriginalToBin
Type: SystemBoolean
If true, the original file will be placed in the recycle bin upon a successful copy.

Return Value

Type: String
The path of the copied file.
See Also