GNOME Bugzilla – Bug 354263
nautilus does not display files named like "2006 tmpfile" via ftp.
Last modified: 2006-10-02 22:19:08 UTC
Steps to Reproduce: ------------------- 1. Launch Nautilus. 2. do ftp to any machine. ftp:// 3. Try to display the file/directory named like "2006 tmpfile". 4. Nautilus displays only tmpfile as the file name, the 2006 is considered as the year of the file creation, and not as part of the file name itself. Though, part of this bug is fixed in the bug #163671, it fails to parse the file like "2006 + space + anything". Let us consider the following: drwxrwxr-x 2 test test 4096 Sep 4 17:42 2006 tmpfile the vfs_parse_filedate() in libgnomevfs/gnome-vfs-parse-ls.c parses this row like: First it parses '17:42' as a time stamp. Then it looks for 2006, finds it as a four digit number. To make sure it is a file name or the year, it looks if 2006 is a last column of this row. To find if it is the last column, it looks for the '\n' or '\r' after 2006. In the given example, it is neighter '\n' nor '\r' but a space. Hence it does not consider 2006 as a part of file name but as a year. Hence the bug.
What version? A bug like this was fixed in 2.14.
Created attachment 72256 [details] "2005 folder" "2006 folder1" not shown correctly.
I downloaded gnome-vfs version 2.15.1 and built it on my machine and i still see the problem. Please see the screenshot attached. There was one bug fixed previously which resolved the issue where filenames resemble date or time (#163671, "ftp errors with directories named with numbers") I created files/folders with the names for example - "2005 folder", "2006 folder1" (4 digits + space + anything) and nautilus does not show them correctly. Please note that the first 4 digits in the filename have to be >1900 and <3000. Had a look at the code and found that numbers not falling in this range are not considered as part of the date by nautilus.
*** This bug has been marked as a duplicate of 350052 ***