Skip to content

02d6337b 9270 57db 4016 389dcc9c11b6

AnyOldName3 edited this page Apr 12, 2017 · 1 revision

WritableSource.MoveFile Method

Moves the file/directory from its current path to a new one, replacing any existing files only if replace is set.

Namespace: LVFS.External
Assembly: LVFS (in LVFS.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public abstract NtStatus MoveFile(
	string currentPath,
	string newPath,
	bool replace,
	LVFSContextInfo info
)

VB

Public MustOverride Function MoveFile ( 
	currentPath As String,
	newPath As String,
	replace As Boolean,
	info As LVFSContextInfo
) As NtStatus

C++

public:
virtual NtStatus MoveFile(
	String^ currentPath, 
	String^ newPath, 
	bool replace, 
	LVFSContextInfo^ info
) abstract

F#

abstract MoveFile : 
        currentPath : string * 
        newPath : string * 
        replace : bool * 
        info : LVFSContextInfo -> NtStatus 

Parameters

 

currentPath
Type: System.String
The current path of the file/directory
newPath
Type: System.String
The new path of the file/directory
replace
Type: System.Boolean
Whether to replace any existing file occupying the new path
info
Type: LVFS.External.LVFSContextInfo
Information concerning the context for this operation.

Return Value

Type: NtStatus
Success if the file was moved. Otherwise, an appropriate error status.

See Also

Reference

WritableSource Class
LVFS.External Namespace

Clone this wiki locally