[Mono-bugs] [Bug 650779] New: File.Move with a symlink with wrong or non existing target fails
bugzilla_noreply at novell.com
bugzilla_noreply at novell.com
Tue Nov 2 13:22:38 EDT 2010
https://bugzilla.novell.com/show_bug.cgi?id=650779
https://bugzilla.novell.com/show_bug.cgi?id=650779#c0
Summary: File.Move with a symlink with wrong or non existing
target fails
Classification: Mono
Product: Mono: Class Libraries
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: Major
Priority: P5 - None
Component: System
AssignedTo: mono-bugs at lists.ximian.com
ReportedBy: bruiz at codicesoftware.com
QAContact: mono-bugs at lists.ximian.com
Found By: ---
Blocker: ---
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; es-ES; rv:1.9.2.12)
Gecko/20101026 Firefox/3.6.12 ( .NET CLR 3.5.30729)
If you try to move a symbolic link using File.Move, it fails if the link has a
wrong target or the target doesn't exists.
Reproducible: Always
Steps to Reproduce:
1.Create a link with a wrong target as: ln -s wrong testlink
2.Try to move/rename it by code with File.Move(testlinkPath, testlinkPath +
"renamed");
Fails: Could not find file ""
Actual Results:
System.IO.FileNotFoundException: Could not find file ""
at System.IO.File.Move (System.String sourceFileName, System.String
destFileName)
Expected Results:
The link properly renamed.
In the example the link must be the name testlinkrenamed
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.
More information about the mono-bugs
mailing list