Skip to content

Extra file exist check in FileSystem.MoveDirectory on Unix #58240

@iSazonov

Description

@iSazonov

Description

See

public static void MoveDirectory(string sourceFullPath, string destFullPath)
{
// Windows doesn't care if you try and copy a file via "MoveDirectory"...
if (FileExists(sourceFullPath))

There are two places where the FileSystem.MoveDirectory helper is used and in both places there is already the same check.

(The comment for Windows in the code is also weird.)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions