[Mono-list] PathTooLongException workaround for mono?

David S buttink at gmail.com
Tue Jun 15 14:23:55 EDT 2010


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
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.

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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20100615/aa14aa18/attachment.html 


More information about the Mono-list mailing list