Google Drive (now Google Backup and Sync) creates files named "Icon\r" in each folder that is synced. When displayed via ls, it simply lists "Icon?". However, when using ls_extended, it outputs a "\r", causing rather severe alignment/spacing issues as you might imagine, since the cursor goes to the beginning of the line. I worked around the issue by adding a strncmp check for "Icon\r" files and ignoring them in this line, but that is a stopgap measure at best. You may wish to consider simply stripping CR characters or, as ls does, outputting '?' instead.
Google Drive (now Google Backup and Sync) creates files named "Icon\r" in each folder that is synced. When displayed via
ls
, it simply lists "Icon?". However, when usingls_extended
, it outputs a "\r", causing rather severe alignment/spacing issues as you might imagine, since the cursor goes to the beginning of the line. I worked around the issue by adding astrncmp
check for "Icon\r" files and ignoring them in this line, but that is a stopgap measure at best. You may wish to consider simply stripping CR characters or, asls
does, outputting '?' instead.