[Mono-bugs] [Bug 368152] New: DirectoryInfo->MoveTo doesn' t work with cross devices directory

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Fri Mar 7 06:39:05 EST 2008


           Summary: DirectoryInfo->MoveTo doesn't work with cross devices
           Product: Mono: Runtime
           Version: unspecified
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: io-layer
        AssignedTo: dick at novell.com
        ReportedBy: informatique.internet at fiducial.fr
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---

Step to reproduce :

Create a directory on a device 
Try to move it with :
DirectoryInfo dr=new DirectoryInfo("/mnt/device1/directory");

It will fails with :

Unhandled Exception: System.IO.IOException: Path  is a directory
  at System.IO.Directory.Move (System.String sourceDirName, System.String
destDirName) [0x00109] in
  at System.IO.DirectoryInfo.MoveTo (System.String dest) [0x00000] in
  at (wrapper remoting-invoke-with-check) System.IO.DirectoryInfo:MoveTo

I've seen in iolayer/io.c MoveFile : 1821 that the case of an EXDEV error is
handled by mono but only with a FILE. It will be great if it could work with a
directory too

PS : The actual exception text (Path is a directory) doesn't match with the
real problem (Invalid cross device link)

Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.

More information about the mono-bugs mailing list