mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Fixed a bug in the snippets extractor regexes.
Updated the file system md.
This commit is contained in:
@@ -62,7 +62,7 @@ export var testPathSeparator = function () {
|
||||
|
||||
export var testFileFromPath = function () {
|
||||
// <snippet name="file-system">
|
||||
// ### Get or Create a Folder With Path
|
||||
// ### Get or Create a File With Path
|
||||
// The following example writes some text to a file created for path.
|
||||
// It will create a new file or overwrite an existing file.
|
||||
// ``` JavaScript
|
||||
@@ -99,7 +99,7 @@ export var testFileFromPath = function () {
|
||||
|
||||
export var testFolderFromPath = function () {
|
||||
// <snippet name="file-system">
|
||||
// ### Get or Create a File With Path
|
||||
// ### Get or Create a Folder With Path
|
||||
// ``` JavaScript
|
||||
var path = fs.path.join(fs.knownFolders.documents().path, "music");
|
||||
var folder = fs.Folder.fromPath(path);
|
||||
|
||||
Reference in New Issue
Block a user