11

I am running Google Drive File Stream Version: 25.252.289.1612 on OS X 10.12.6 which mounts/Volumes/GoogleDrive/

Open a Bash shell (I use iTerm3). When I ls (or ls -a) this directory, I get no results. But if I use tab completion, I can see the two subdirectories, 'My Drive' and 'Team Drive' as well as some other stuff. As I cd into subdirectories, again ls shows no files but tab completion shows them. And I can operate on files/directories. So if there is a file foo.gsheets , I can open * open foo.gsheets* which will launch in Chrome, for example. Or if I had foo.txt I could vi foo.txt. I checked that I had read/write/execute permission on files and dirs. And even tried to sudo ls .

Any ideas? Here is my mount drivefs on /Volumes/GoogleDrive (dfsfuse_DFS, local, nodev, nosuid, synchronous, mounted by aberezin)

Maybe related to the implemenation of osxfuse https://github.com/osxfuse/osxfuse/issues/503

Alan Berezin
  • 533
  • 4
  • 13
  • Have a similar issue on osx 10.11.6. Did you solve the problem eventually? – user1036719 Aug 16 '18 at 02:23
  • Same problem for me. – Uri Laserson Oct 24 '18 at 17:51
  • No, it doesnt have the priority for me to dig into osxfuse. – Alan Berezin Oct 26 '18 at 17:17
  • 1
    Which version of `ls` are you using (is it `/bin/ls` or do you use a newer, non-default version)? I have the same problem with iterm 2 when I use a newer version of `ls` that I install with homebrew, but `/bin/ls -al` works. I've also given iterm full disk access through the Security & Privacy settings in System Preferences. – jyalim Nov 12 '18 at 19:24
  • $which ls #I installed gnutls @3.5.19_0 via macport but Ill try /bin/ls /opt/local/libexec/gnubin/ls – Alan Berezin Nov 13 '18 at 21:08
  • Thank you @HAL9001 It is indeed true that /opt/local/libexec/gnubin/ls (installed my macports from gnuutils) cannot see files but /bin/ls can. – Alan Berezin Nov 27 '18 at 19:42
  • I'd recommend updating the original question with this information. Also, since my post `/bin/ls` will fail for me in a terminal that has been open for a "long time". – jyalim Nov 28 '18 at 02:31
  • I was having the same issue on Ubuntu via (WSL): https://stackoverflow.com/q/49944731/635160 – Gabriel Fair Dec 29 '18 at 20:23
  • 1
    I'm able to `ls` with iterm2 on the latest MacOS – Ian Hyzy Apr 17 '19 at 21:57

1 Answers1

0

First remove the cache using this command:

rm -rf ~/Library/Application\ Support/Google/DriveFS/

Then ls into the directory.

yusuf
  • 64
  • 2