Friday, September 28, 2018

Release 1 Blog

Release 1

I worked on the stat.spec section of the filer code. The goal was to create promise version for a function in the .spec code. I started by git cloning the master repo and worked on some of the implementation. The problems started to hit, when i tried to run the testers and they failed, but they failed for reasons other then what i was expecting







I later found out that it was because of  some code, in the .eslintrc.json file



in the line break section, under error it set the cli for a unix computer, after i changed the code to windows it began to pass the tests. unfortunately there where more problems. After running npm test command there seemed to be a problem with the karma test, and it started spitting out errors. By this time have spent more time trying to debug working code then i would like. Next time i think i will look closer at the process of people who have been successful with their pulls and understand how to go about doing this, because on my own it is something else.

Monday, September 10, 2018

fs.watch(filename[, options][,listener]) blog


In this tutorial we will be going over the watch() function

fs.watch(filename[, options][,listener])

This functions has three arguments first is the file name
 Ex
fs.watch("text.txt"[, options][,listener])

The second argument is the optional, provide a string to specifiy encoding otherwise the option should be an object
Ex
fs.watch("text.txt",  obj, [listener])

Lastly the listener argument represents a callback with two arguments. the eventType, and the filename. The eventType is either rename or change depending on the event, and the filename represents the file that triggered the event.