[Mono-list] PathTooLongException workaround for mono?

David S buttink at gmail.com
Tue Jun 15 16:37:08 EDT 2010


Mono.Unix.Native.Syscall.rename, AWSOME! Thanks a bunch :)

On Tue, Jun 15, 2010 at 3:20 PM, Robert Jordan <robertj at gmx.net> wrote:

> On 15.06.2010 20:23, David S wrote:
> > Thats cool and everything, but I want to be able to go past the C# limit
> on
> > path size. So while that was informative, it doesn't really answer my
>
> The limit is imposed by Mono's io-layer and it's not configurable.
> If you need more than 260 chars that you could use Mono.Posix.
>
> > question. On Windows apparently you can call an API function and use
> "\\?\"
> > as a prefix and have a path length of 32,767 or even have it unbounded in
> > some cases.
>
> You cannot use these escaped paths with MS.NET or Mono.
>
> Robert
>
> >
> > On Tue, Jun 15, 2010 at 5:51 AM, Christopher David Howie
> > <me at chrishowie.com>wrote:
> >
> >> On 06/15/2010 04:12 AM, David S wrote:
> >>> While I personally have not hit the max character boundry, my
> >>> application should probably know how to avoid that considering its
> >>> nothing but IO operations. The only information I have found was a msdn
> >>> page about Windows API calls I could use on
> >>> windows
> >> http://msdn.microsoft.com/en-us/library/aa365247(VS.85).aspx#maxpath.
> >>> So, im guessing I have to find some Linux and Mac API calls and just
> >>> deal with the different OSes?
> >>
> >> Yeah.  Btw, Google rocks for that:
> >> <
> >>
> http://stackoverflow.com/questions/833291/is-there-an-equivalent-to-winapis-max-path-under-linux-unix
> >>> .
> >>
> >> --
> >> Chris Howie
> >> http://www.chrishowie.com
> >> http://en.wikipedia.org/wiki/User:Crazycomputers
> >>
> >> If you correspond with me on a regular basis, please read this document:
> >> http://www.chrishowie.com/email-preferences/
> >>
> >> PGP fingerprint: 2B7A B280 8B12 21CC 260A DF65 6FCE 505A CF83 38F5
> >>
> >> ------------------------------------------------------------------------
> >>                     IMPORTANT INFORMATION/DISCLAIMER
> >>
> >> This document should be read only by those persons to whom it is
> >> addressed.  If you have received this message it was obviously addressed
> >> to you and therefore you can read it.
> >>
> >> Additionally, by sending an email to ANY of my addresses you are
> >> agreeing that I am, by definition, "the intended recipient," and that I
> >> may do whatever I wish with the contents of any message you send me,
> >> unless a pre-existing agreement prohibits me from so doing.
> >>
> >> This overrides any disclaimer or statement of confidentiality that may
> >> be included on your message.
> >>
> >
> >
> >
> > _______________________________________________
> > Mono-list maillist  -  Mono-list at lists.ximian.com
> > http://lists.ximian.com/mailman/listinfo/mono-list
>
>
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100615/5d36b9df/attachment-0001.html 


More information about the Mono-list mailing list