R
Rhino
I realize that this isn't a particularly appropriate place to ask this but
I've already posted to my ISP's newsgroup and am still waiting for an answer
hours later. I thought I'd try here too and see if someone has any ideas.
I have 5 MB of free space on my ISPs server as part of my Internet service.
I am trying to figure out how much of that space is still available. (I'd
settle for knowing how much of the space is used; I can subtract that from
the 5 MB to see how much space is left.)
I'm using Ant to FTP a small directory tree to the server and it's coming
back with a very vague message that says it konked out on the fourth file
but without any specific reason. I don't know if the 5 MB is exhausted or a
file is corrupted or the connection was lost or something else altogether so
I want to determine the amount of free space left, just to rule out that
possible cause.
I'm inclined to think the space is _not_ exhausted - I deleted a bunch of
files before attempting to add the new ones and I think the old were bigger
(in aggregate) than the new ones - but I could be wrong.
I have an FTP client, SmartFTP, but I can't find any way to determine how
much space is left. It has a command line feature and I've tried doing 'df'
but it doesn't even recognize the command. Then again, the only command it
*has* recognized, of the ones that I've tried, is 'pwd'. 'ls', 'li', 'echo
hi', 'dir' have all been rejected as unknown commands. Mind you, I don't
know what operating system the server is using!
I've connected directly to the server with the ftp command from my Windows
command prompt but the ftp session doesn't appear to have any subcommands
that can determine the amount of space remaining.
I thought about writing a quickie Java class that could interrogate the
server for space remaining but didn't find any classes that would tell me
that. There is no FTP class and the URL class doesn't seem to have anything
to interrogate space remaining on the server.
I'm spinning my wheels here and would appreciate some suggestions. This
seems like something that should be easy to determine but nothing I've tried
yet works....
I've already posted to my ISP's newsgroup and am still waiting for an answer
hours later. I thought I'd try here too and see if someone has any ideas.
I have 5 MB of free space on my ISPs server as part of my Internet service.
I am trying to figure out how much of that space is still available. (I'd
settle for knowing how much of the space is used; I can subtract that from
the 5 MB to see how much space is left.)
I'm using Ant to FTP a small directory tree to the server and it's coming
back with a very vague message that says it konked out on the fourth file
but without any specific reason. I don't know if the 5 MB is exhausted or a
file is corrupted or the connection was lost or something else altogether so
I want to determine the amount of free space left, just to rule out that
possible cause.
I'm inclined to think the space is _not_ exhausted - I deleted a bunch of
files before attempting to add the new ones and I think the old were bigger
(in aggregate) than the new ones - but I could be wrong.
I have an FTP client, SmartFTP, but I can't find any way to determine how
much space is left. It has a command line feature and I've tried doing 'df'
but it doesn't even recognize the command. Then again, the only command it
*has* recognized, of the ones that I've tried, is 'pwd'. 'ls', 'li', 'echo
hi', 'dir' have all been rejected as unknown commands. Mind you, I don't
know what operating system the server is using!
I've connected directly to the server with the ftp command from my Windows
command prompt but the ftp session doesn't appear to have any subcommands
that can determine the amount of space remaining.
I thought about writing a quickie Java class that could interrogate the
server for space remaining but didn't find any classes that would tell me
that. There is no FTP class and the URL class doesn't seem to have anything
to interrogate space remaining on the server.
I'm spinning my wheels here and would appreciate some suggestions. This
seems like something that should be easy to determine but nothing I've tried
yet works....