Using the File API


#1

I want to use the File class in a plugin, but it can’t be imported via the usual require 'atom' method. How is File used?


#2

You have to use the pathwatcher dependency.

The markdown-preview package is using it, you can use it as an example.