Re: Check Disk space before file upload

2005-08-24 Thread Shey Rab Pawo
Since we are on this tack, has anyone seen a Java program that uses
the NIO to do something like a unix "tail" command?  There is supposed
to be one in chainsaw, but it really is  just a simple polling app.

On 8/24/05, Pilgrim, Peter <[EMAIL PROTECTED]> wrote:
> I have written a long time ago, the JavaUNIX API framework
> http://www.xenonsoft.demon.co.uk/products/javaunix/
> 
> 
> > -Original Message-
> > From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED]
> ====
> >
> >
> > Hello,
> >
> > How can I check for disk space  on the server before
> > uploading a file on the
> > server?
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> --
> Peter Pilgrim :: J2EE Software Development
> Operations/IT - Credit Suisse First Boston,
> Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
> Tel: +44-(0)207-883-4497
> 
> ==
> Please access the attached hyperlink for an important electronic 
> communications disclaimer:
> 
> http://www.csfb.com/legal_terms/disclaimer_external_email.shtml
> 
> ==
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
No one ever went blind looking at the bright side of life.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Check Disk space before file upload

2005-08-24 Thread Pilgrim, Peter
I have written a long time ago, the JavaUNIX API framework
http://www.xenonsoft.demon.co.uk/products/javaunix/


> -Original Message-
> From: Anuradha S.Athreya [mailto:[EMAIL PROTECTED]
====
> 
> 
> Hello,
> 
> How can I check for disk space  on the server before 
> uploading a file on the
> server?
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
--
Peter Pilgrim :: J2EE Software Development
Operations/IT - Credit Suisse First Boston, 
Floor 15, 5 Canada Square, London E14 4QJ, United Kingdom
Tel: +44-(0)207-883-4497

==
Please access the attached hyperlink for an important electronic communications 
disclaimer: 

http://www.csfb.com/legal_terms/disclaimer_external_email.shtml

==


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Check Disk space before file upload

2005-08-24 Thread Dakota Jack
Thanks!

On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> Hi Jack,
> 
> You can grab the latest version off the Bugzilla ticket:
> 
> http://issues.apache.org/bugzilla/show_bug.cgi?id=36325
> 
> It's one of those things that you'll look at the code and go "D'oh!
> That's obvious as hell!", but amazingly I couldn't find anything similar
> anywhere before I wrote it (there *must* be something, I just didn't
> turn it up).
> 
> Frank
> 
> Dakota Jack wrote:
> > Frank, could you shoot this code to me?  That sounds interesting as
> > all get out!  Thanks ahead of time.
> >
> > On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> >
> >>There's no easy cross-platform way to do this, believe it or not.  Seems
> >>like it should be in the SDK, but it isn't.
> >>
> >>There is however some code I contributed to the Commons IO project that
> >>does exactly this.  It is currently in SVN only, but I just submitted
> >>some updates today that hopefully will allow it to be in the upcoming
> >>1.1 (I believe) release).
> >>
> >>In the mean time, you can grab FileSystemUtils.java from SVN and give it
> >>a shot.  It depends on one other class from IO (ByteArrayOutputStream I
> >>think), but you can use the standard version instead, it will compile
> >>fine against it (IIRC, this adds the possibility of some other
> >>exceptions you'd have to potentially handle, but otherwise it works).
> >>
> >>Frank
> >>
> >>Anuradha S.Athreya wrote:
> >>
> >>>Hello,
> >>>
> >>>How can I check for disk space  on the server before uploading a file on 
> >>>the
> >>>server?
> >>>
> >>>
> >>>
> >>>-
> >>>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>>For additional commands, e-mail: [EMAIL PROTECTED]
> >>>
> >>>
> >>>
> >>>
> >>>
> >>
> >>
> >>
> >>-
> >>To unsubscribe, e-mail: [EMAIL PROTECTED]
> >>For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >>
> >
> >
> >
> 
> --
> Frank W. Zammetti
> Founder and Chief Software Architect
> Omnytex Technologies
> http://www.omnytex.com
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Check Disk space before file upload

2005-08-23 Thread Frank W. Zammetti

Thanks... I think :)

Frank

David G. Friedman wrote:

Frank,

That's a very interesting bit of coding. :)

Regards,
David

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:06 AM
To: Struts Users Mailing List
Subject: Re: Check Disk space before file upload


Hi Jack,

You can grab the latest version off the Bugzilla ticket:

http://issues.apache.org/bugzilla/show_bug.cgi?id=36325

It's one of those things that you'll look at the code and go "D'oh!
That's obvious as hell!", but amazingly I couldn't find anything similar
anywhere before I wrote it (there *must* be something, I just didn't
turn it up).

Frank

Dakota Jack wrote:


Frank, could you shoot this code to me?  That sounds interesting as
all get out!  Thanks ahead of time.

On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:



There's no easy cross-platform way to do this, believe it or not.  Seems
like it should be in the SDK, but it isn't.

There is however some code I contributed to the Commons IO project that
does exactly this.  It is currently in SVN only, but I just submitted
some updates today that hopefully will allow it to be in the upcoming
1.1 (I believe) release).

In the mean time, you can grab FileSystemUtils.java from SVN and give it
a shot.  It depends on one other class from IO (ByteArrayOutputStream I
think), but you can use the standard version instead, it will compile
fine against it (IIRC, this adds the possibility of some other
exceptions you'd have to potentially handle, but otherwise it works).

Frank

Anuradha S.Athreya wrote:



Hello,

How can I check for disk space  on the server before uploading a file on


the


server?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Check Disk space before file upload

2005-08-23 Thread David G. Friedman
Frank,

That's a very interesting bit of coding. :)

Regards,
David

-Original Message-
From: Frank W. Zammetti [mailto:[EMAIL PROTECTED]
Sent: Wednesday, August 24, 2005 1:06 AM
To: Struts Users Mailing List
Subject: Re: Check Disk space before file upload


Hi Jack,

You can grab the latest version off the Bugzilla ticket:

http://issues.apache.org/bugzilla/show_bug.cgi?id=36325

It's one of those things that you'll look at the code and go "D'oh!
That's obvious as hell!", but amazingly I couldn't find anything similar
anywhere before I wrote it (there *must* be something, I just didn't
turn it up).

Frank

Dakota Jack wrote:
> Frank, could you shoot this code to me?  That sounds interesting as
> all get out!  Thanks ahead of time.
>
> On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
>
>>There's no easy cross-platform way to do this, believe it or not.  Seems
>>like it should be in the SDK, but it isn't.
>>
>>There is however some code I contributed to the Commons IO project that
>>does exactly this.  It is currently in SVN only, but I just submitted
>>some updates today that hopefully will allow it to be in the upcoming
>>1.1 (I believe) release).
>>
>>In the mean time, you can grab FileSystemUtils.java from SVN and give it
>>a shot.  It depends on one other class from IO (ByteArrayOutputStream I
>>think), but you can use the standard version instead, it will compile
>>fine against it (IIRC, this adds the possibility of some other
>>exceptions you'd have to potentially handle, but otherwise it works).
>>
>>Frank
>>
>>Anuradha S.Athreya wrote:
>>
>>>Hello,
>>>
>>>How can I check for disk space  on the server before uploading a file on
the
>>>server?
>>>
>>>
>>>
>>>-
>>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>>For additional commands, e-mail: [EMAIL PROTECTED]
>>>
>>>
>>>
>>>
>>>
>>
>>
>>
>>-
>>To unsubscribe, e-mail: [EMAIL PROTECTED]
>>For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>
>
>

--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Check Disk space before file upload

2005-08-23 Thread Frank W. Zammetti

Hi Jack,

You can grab the latest version off the Bugzilla ticket:

http://issues.apache.org/bugzilla/show_bug.cgi?id=36325

It's one of those things that you'll look at the code and go "D'oh! 
That's obvious as hell!", but amazingly I couldn't find anything similar 
anywhere before I wrote it (there *must* be something, I just didn't 
turn it up).


Frank

Dakota Jack wrote:

Frank, could you shoot this code to me?  That sounds interesting as
all get out!  Thanks ahead of time.

On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:


There's no easy cross-platform way to do this, believe it or not.  Seems
like it should be in the SDK, but it isn't.

There is however some code I contributed to the Commons IO project that
does exactly this.  It is currently in SVN only, but I just submitted
some updates today that hopefully will allow it to be in the upcoming
1.1 (I believe) release).

In the mean time, you can grab FileSystemUtils.java from SVN and give it
a shot.  It depends on one other class from IO (ByteArrayOutputStream I
think), but you can use the standard version instead, it will compile
fine against it (IIRC, this adds the possibility of some other
exceptions you'd have to potentially handle, but otherwise it works).

Frank

Anuradha S.Athreya wrote:


Hello,

How can I check for disk space  on the server before uploading a file on the
server?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]








--
Frank W. Zammetti
Founder and Chief Software Architect
Omnytex Technologies
http://www.omnytex.com


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Check Disk space before file upload

2005-08-23 Thread Dakota Jack
Frank, could you shoot this code to me?  That sounds interesting as
all get out!  Thanks ahead of time.

On 8/23/05, Frank W. Zammetti <[EMAIL PROTECTED]> wrote:
> There's no easy cross-platform way to do this, believe it or not.  Seems
> like it should be in the SDK, but it isn't.
> 
> There is however some code I contributed to the Commons IO project that
> does exactly this.  It is currently in SVN only, but I just submitted
> some updates today that hopefully will allow it to be in the upcoming
> 1.1 (I believe) release).
> 
> In the mean time, you can grab FileSystemUtils.java from SVN and give it
> a shot.  It depends on one other class from IO (ByteArrayOutputStream I
> think), but you can use the standard version instead, it will compile
> fine against it (IIRC, this adds the possibility of some other
> exceptions you'd have to potentially handle, but otherwise it works).
> 
> Frank
> 
> Anuradha S.Athreya wrote:
> > Hello,
> >
> > How can I check for disk space  on the server before uploading a file on the
> > server?
> >
> >
> >
> > -
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
> >
> 
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 


-- 
"You can lead a horse to water but you cannot make it float on its back."
~Dakota Jack~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Check Disk space before file upload

2005-08-23 Thread Frank W. Zammetti
There's no easy cross-platform way to do this, believe it or not.  Seems 
like it should be in the SDK, but it isn't.


There is however some code I contributed to the Commons IO project that 
does exactly this.  It is currently in SVN only, but I just submitted 
some updates today that hopefully will allow it to be in the upcoming 
1.1 (I believe) release).


In the mean time, you can grab FileSystemUtils.java from SVN and give it 
a shot.  It depends on one other class from IO (ByteArrayOutputStream I 
think), but you can use the standard version instead, it will compile 
fine against it (IIRC, this adds the possibility of some other 
exceptions you'd have to potentially handle, but otherwise it works).


Frank

Anuradha S.Athreya wrote:

Hello,

How can I check for disk space  on the server before uploading a file on the
server?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]









-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]