Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   FTP program that does this. (https://www.warriorforum.com/programming/146574-ftp-program-does.html)

Shift 19th November 2009 01:41 PM

FTP program that does this.
 
Sorry if this is the wrong section to post this question but I need a FTP program that allows one to check the properties (size of files) for all files in a directory.

I've already tried several but I was only able to check the properties for multiple files on my hard drive, and not on the ftp site (was only able to check file sizes one at a time).

I need this to make sure an upload went through.

Thanks.

m4rx 19th November 2009 08:01 PM

Re: FTP program that does this.
 
I don't know of any that do that, but if your server is a Linux server, and you have access to SSH, you can use the command

$ du -ch /path/to/your/directory | grep total

and this will show the size of everything in that folder.

If not, your SOLd, as there is no FTP program that supports this. FTP doesn't support recursion, as it's a pretty simple protocol.

You could possibly try telnet if the server supports that too.

--m4rx

TruWebPro 19th November 2009 08:18 PM

Re: FTP program that does this.
 
FileZilla has a window that will show you what I think you are looking for if I understand your question correctly. You just highlight the files, and the cumulative size appears below. Here's a screenshot of the remote window to show you:

http://truwebpro.com/images/fzshot.jpg

It's at http://filezilla-project.org/
Hope that helps.

Cheers,
Neil

m4rx 19th November 2009 08:41 PM

Re: FTP program that does this.
 
The only problem with that is that it will only work on files, not a directory. So if there are other folders inside that directory, shift will have to check each one of those individually.

--m4rx

Shift 20th November 2009 04:19 AM

Re: FTP program that does this.
 
I will give Filezilla a try, and it looks like I'll just have to check each directory individually.
Oh well better than nothing.

So it looks like there's no solution to this, that it's not possible to check file sizes within multiple directories; one must check each directory's files at a time.

Thanks and if anyone knows differently, would appreciate the info.

ankit_frenz 20th November 2009 04:44 AM

Re: FTP program that does this.
 
may be you can directly connect to the ftp port via telnet and request file properties of a folder..but that will need some technical know how..anyways filezila also works good

gordi555 20th November 2009 05:01 AM

Re: FTP program that does this.
 
Quote:

Originally Posted by m4rx (Post 1405652)
I don't know of any that do that, but if your server is a Linux server, and you have access to SSH, you can use the command

$ du -ch /path/to/your/directory | grep total

and this will show the size of everything in that folder.

If not, your SOLd, as there is no FTP program that supports this. FTP doesn't support recursion, as it's a pretty simple protocol.

You could possibly try telnet if the server supports that too.

--m4rx

Cheers, will be handy for me :) Thanks!

m4rx 20th November 2009 07:40 AM

Re: FTP program that does this.
 
Quote:

Originally Posted by gordi555 (Post 1406956)
Cheers, will be handy for me :) Thanks!

No problem. Linux is my happy place.

--m4rx


All times are GMT -6. The time now is 11:39 PM.