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
)
Public Shared Function CopyFileToAppropriateFolder (
filepath As String,
moveOriginalToBin As Boolean
) As String
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:
StringThe path of the copied file.
See Also