[Mono-list] PathTooLongException workaround for mono?
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
> > 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.
> > 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:
> >> <
> >>> .
> >> --
> >> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mono-list