mirror of
https://github.com/atom/atom.git
synced 2026-01-22 05:17:57 -05:00
Add require(atom) for home directory example
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
* Class methods (methods starting with a `@`)
|
||||
* Instance methods
|
||||
* Beware of platform differences
|
||||
* Use `fs.getHomeDirectory()` to get home directory.
|
||||
* Use `require('atom').fs.getHomeDirectory()` to get the home directory.
|
||||
* Use `path.join()` to concatenate filenames.
|
||||
* Temporary directory is not `/tmp` on Windows, use `os.tmpdir()` when
|
||||
possible
|
||||
|
||||
Reference in New Issue
Block a user