November 2017
Beginner to intermediate
288 pages
7h 33m
English
Within our root directory, we have another subfolder named books. It will typically be a child in the root directory. This is why, just like the files, the structure looks like that of a database--a tree where we have a root, branches or children, and leaves acting as our end files. Let us now see what we did in the recipe:
Now, you might wonder: how can I get the final path or even the name of a file or a directory? The APIs to do this are quite explicit, as shown in the following code:
//Getting the file Path. let bookPath = firebaseCookbook.fullPath; //Getting the file Name. let bookName = firebaseCookbook.name;
So what just happened again? Basically, we got the file path, which is books/Firebase_Cookbook.ebook. What ...
Read now
Unlock full access