Could not read public directory. Remove links and shortcuts and try again. (Firebase) -


i stepping through tutorial:

https://codelabs.developers.google.com/codelabs/firebase-web/#0

on step 9 asks execute firebase deploy when try error message:

could not read public directory. remove links , shortcuts , try again.

i don't know means links , shortcuts far can tell there nothing in folder plain old files.

the folder i'm trying deploy web folder should contain completed sample.

note per instructions storage.rules updated name of bucket , index.html updated firebase snippet.

the firebase.json file looks this:

{   "database": {     "rules": "database-rules.json"   },   "storage": {     "rules": "storage.rules"   },   "hosting": {     "public": "./",     "ignore": [       "firebase.json",       "database-rules.json",       "storage.rules"     ]   } } 

any ideas error be? there way more detailed information?

in case temp emacs file causing issue:

$ firebase deploy  === deploying 'xxxx-42402'...   deploying database, hosting ✔  database: rules ready deploy.  hosting: preparing public directory upload...  error: not read public directory. remove links , shortcuts , try again. rooseveltpwnsu:xxxx xrdawson$ ls -la public/ total 3840 -rw-r--r--   1 xrdawson  staff     5122 feb 13 12:52 #index.html# drwxr-xr-x  15 xrdawson  staff      510 feb 13 14:40 . lrwxr-xr-x   1 xrdawson  staff       35 feb  6 14:12 .#index.html -> xrdawson@rooseveltpwnsu.local.67168 

saving file index.html inside emacs resolved issue me!