PDA

View Full Version : If you implement this feature you will be the best FTP Client ever!


StarBuG
02-03-2002, 07:21 AM
Hi!

Today I use FlashFXP for most of my work (cause its my absolute favorite!) but sumetimes I have to use SmartFTP!

You ask why?

Very easy! FlashFXP don´t recognise Folders with spaces as first charackter and also no space only folders!
I have a firma running a public accesseble ftp and some kiddys like to create folders with lots of spaces on it! So if I access my Server with Flash I normaly don´t recognise them! But Smart show them up!

Please implement in the next FlashFXP Version that the Program also show up Space Folders and Spaces as first charackters in a Folder!

Thanks alot

Your great fan StarBuG

Sorry for spelling I´m german and do my best ;)

Fusion
02-03-2002, 07:40 AM
This has been answered several times, last but not least here (http://www.flashfxp.org/~forum/showthread.php?s=&threadid=446). Folders beginning with space aren't displayed for a reason. Just because some other client tries to implement that does not mean they do it in a way that will always work.

StarBuG
02-03-2002, 07:56 AM
All the ftp clients I have seen that handle spaces in front assume there is only one space, thus breaking compatiblity with ftp servers that use multiple spaces


Check out SmartFTP

It handels multiple spaces in front of the folder name and also space only folders so there must be a way! ;)

But it´s just a suggestion and sorry for writing this request as the x´d user

Greetings

StarBuG

bigstar
02-03-2002, 09:17 AM
what SmartFTP does actually breaks compatiblity with some ftp servers.

Below is an exampleof a ftp server that generates a listing with 2 spaces before the filename.

drwxr-sr-x 11 Advantis IGN 512 Mar 27 2000 .
drwxr-sr-x 11 Advantis IGN 512 Mar 27 2000 ..
d--x--s--x 2 Advantis IGN 512 Mar 27 2000 bin
dr-xr-sr-x 2 Advantis IGN 512 Mar 27 2000 etc
drwxr-sr-x 3 280 1 512 Mar 19 2000 home
drwxrws--- 2 Advantis IGN 512 Mar 19 2000 incoming
dr-xr-sr-x 2 Advantis IGN 512 Mar 27 2000 lib
drwxrwx--- 2 Advantis IGN 512 Mar 19 2000 lost+found
drwxrwsr-x 46 Advantis IGN 1024 Mar 27 2000 pub
drwx--S--- 4 Advantis IGN 512 Mar 19 2000 tmp
dr-xr-sr-x 3 Advantis IGN 512 Mar 19 2000 usr
-rw-r--r-- 1 Advantis IGN 120 Sep 3 1999 welcome.msg

StarBuG
02-07-2002, 06:35 AM
Hope there is a solution for this Problem!!

I like it that you try to make flashFXP compatible to all FTP Servers out there!!
That´s why it´s one of the best!!

Thx for your time!

Greetings

StarBuG

Fusion
02-07-2002, 07:16 AM
Solution? After a fashion there is. FlashFXP will NOT be supporting such folders directly, because it would most likely end up breaking the compatability standards. That said, you can still access these folders by using the raw directory listing, copy the directory with spaces and all, and change into it manually.

Linkster
02-07-2002, 09:22 AM
in addition...ANY legitimate ftp site does not make stupid folders like that.

StarBuG
02-07-2002, 03:13 PM
in addition...ANY legitimate ftp site does not make stupid folders like that.


I know that and for that reason I stoped to allow anonymous access to my server!
I had a hard time to remove all the f*****g space folders and folders with illegal commands from my server!

Thx for your help guys

Greeting

StarBuG

Fusion
02-07-2002, 05:07 PM
Actually, there's no problem allowing anonymous users, if that's your fancy. Just don't let them have any write-permissions-Problem solved.

SmartFTP
02-07-2002, 08:12 PM
Hello everyone ..

If you allow me to make some clarifications regarding some comments on this thread.

SmartFTP does NOT violate any FTP server "compatibilities" as some of you have asserted. I think there's something else what is broken.

SmartFTP is trying to decode the listing the best way possible. I'm trying not to sound arrogant, but in my opinion SmartFTP is doing a very good job on this.

I did test the listing from "bigstar" with our decoding engine and it has been decoded correctly without any spaces in the file names as you might except. To give you a small hint, it should be clear that the first two dirs "." and ".." cannot have leading spaces. Due of this insight you can properly decode the rest of the listing.

I don't say the FTP listings decoder of SmartFTP cannot be fooled with some human generated listings nor is it perfect, it's just doing its job :-)

My 2c.

-Mat
SmartFTP Developer

bigstar
02-07-2002, 09:04 PM
I stand corrected.. Please forgive me.

Although I'm not very sure about your suggestion
To give you a small hint, it should be clear that the first two dirs "." and ".." cannot have leading spaces
I did some testing and proftpd allows " .." and " ." and if you make a " ." or " .." folder it appears above the standard "." and ".."


drwxrwxrwx 9 0 0 4096 Feb 8 02:58 .
drwxrwxrwx 2 0 0 4096 Feb 8 02:58 ..
drwxrwxrwx 9 0 0 4096 Feb 8 02:58 .
drwxr-xr-x 3 0 0 4096 Jul 9 2001 ..

Hornza
02-11-2002, 09:03 AM
Cuteftp Pro also supports the space's b4 filenames as well.

SmartFTP
02-16-2002, 01:34 AM
Indeed my last suggestion can only be used if you have the whole directory listing at once and not decoding it line by line.

But I tested it with SmartFTP and it does correctly decode it. This is because the listing has been detected as a unix format with a fixed column width.

The majority of unix listing, say like 95% do have exactly 1 space between the date and the filename. And now you only need to detect the irregular ones and handle them different. You can detect them according their characteristics like size, date, time representations.

I hope this helps you fixing the problem with the leading spaces.

-Mat

JLeinenbach
02-27-2002, 08:48 PM
What about just to try it out? If the decoding engine can see a directory "directoryxy" and a cd "directoryxy" does not work (error message), it could try at least a cd " directoryxy" and
" directoryxy" etc.

This could be used if the method of SmartFTP fails.

If you think that this method is "too dirty", you could try to "dir" instead of changing into this directory and look what happens.

Jens