Not existing, preceding space in names of older files/dirs

FTP client for Android handsets.

Not existing, preceding space in names of older files/dirs

Postby sweber » Fri Aug 26, 2016 9:23 pm

I'm using AndFTP to transfer files between my mobile and my Linux-PC via SCP.

It seems AndFTP sometimes adds a space in front of file/dir names, and as result, the try to access this files/dirs throws a "could not access directory" error.

What I observed first is that the files /dirs listing is not sorted straight through, but consists of two groups, each sorted on its own.
A closer look shows that the entries in the list are not aligned, those of the first group are shifted right a little due to that additional space character. I've drawn two vertical lines in the following screenshot to show it:

Screenshot_20160826-185423.png
Screenshot_20160826-185423.png (89.82 KiB) Viewed 1093 times


When trying to access files/dirs of the first group, I get an error, and the lines at the bottom state (translated):

Code: Select all
cd "/home/sweber/ XMLfix"
bash: line 0: cd: /home/sweber/ XMLfix: File or directory not found


Screenshot_20160826-185459.png
Screenshot_20160826-185459.png (54.77 KiB) Viewed 1093 times


Here, the preceding space becomes obvious. But it doesn't exist, as the ls command on my PC shows:
Code: Select all
$ ls -la "/home/sweber/."
insgesamt 11827236
...
drwxr-x---  26 sweber users       4096  3. Mär 2012  variation2
drwxr-xr-x   2 sweber users       4096 16. Sep 2011  Videos
drwxr-xr-x   2 sweber users       4096 16. Sep 2011  Vorlagen
drwxr-xr-x  11 sweber users       4096 15. Jun 2015  WaveBackup
drwxr-xr-x   3 sweber users       4096  9. Mai 2014  Win7
drwxr-xr-x   6 sweber users       4096 16. Sep 2011  world
drwxr-xr-x   3 sweber users       4096  8. Mär 2012  XMLfix
drwxr-xr-x   2 sweber users       4096 16. Sep 2011  Öffentlich
drwxr-xr-x   5 sweber users       4096 10. Aug 21:07 .android
drwxr-xr-x   4 sweber users       4096  4. Jul 13:28 .AndroidStudio2.1
drwxr-xr-x   4 sweber users       4096  7. Aug 16:17 .audacity-data
drwxr-x---  35 sweber users       4096 26. Aug 22:12 .cache
...


This listing gives a further hint. For files newer than a year, the time is shown, for older files, the year is displayed. This is exactly the problem: Files older than a year get that space, newer files don't. I could confirm this on several other directories.


Could you fix that?

About my systems:

App: AndFTP version: 4.4
Mobile: Oneplus One, Cyanogen Mod 13.1.1 (based on Android 6.0.1)
PC: OpenSuse Leap 42.1
sweber
 
Posts: 1
Joined: Fri Aug 26, 2016 8:07 pm

Re: Not existing, preceding space in names of older files/di

Postby support » Thu Oct 27, 2016 5:23 pm

See in advanced tab, there is an option to deal with leading space.
support
 
Posts: 1010
Joined: Sun Apr 20, 2008 4:40 pm


Return to AndFTP



cron

Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.