Skip to content

Conversation

Ombuweb
Copy link
Contributor

@Ombuweb Ombuweb commented Nov 22, 2022

No description provided.

@Ombuweb Ombuweb marked this pull request as draft November 22, 2022 09:19
@cla-bot cla-bot bot added the cla: yes label Nov 22, 2022
@Ombuweb
Copy link
Contributor Author

Ombuweb commented Nov 23, 2022

@rigor789 I think we should provide an explanation about the difference between knownFolders.documents() and knownFolders.currentApp()

@Ombuweb Ombuweb marked this pull request as ready for review November 23, 2022 15:30
```
### Check if a file exists

To check if a file exists, call the static [exists](#exists) method of the File class and pass it the file path string:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo.

"pass it the file path string"

Should be "pass it to the file path stored in a string"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it should be "pass it the file path as a string"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"pass the method the file path as a string"
No confusion that way.

@Ombuweb
Copy link
Contributor Author

Ombuweb commented May 19, 2023

Thank you @SeanKelly369 .

```
### Check if a file exists

To check if a file exists, call the static [exists](#exists) method of the File class and pass it the file path string:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"pass the method the file path as a string"
No confusion that way.

description: Work with the device file system
---

The FileSystem module provides high-level abstractions for file system entities such as files, folders, known folders( the entry to the device file system), paths, separators, etc.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The FileSystem module offers easy-to-use tools for working with files and folders in a computer's file system. It provides helpful functions for managing files, folders, paths, and separators, etc.

})

```
- To read data from a text file, use the `readText` or `readTextSync` method of the file instance:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

How about something less dry, such as this ->

To extract data from a text file, you can use the readText or readTextSync method of the file instance. Here's an example of how to use it:


### Normalizing a path

To normalize a path use the `normalize` or create the path with the `join` method from the [path](#path-operations) object:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worthwhile mentioning what normalizing a path means?

@NathanWalker NathanWalker changed the base branch from main to dev July 19, 2023 17:49
@NathanWalker NathanWalker merged commit a30b3dc into NativeScript:dev Aug 13, 2023
NathanWalker added a commit to Ombuweb/docs that referenced this pull request Aug 13, 2023
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit to Ombuweb/docs that referenced this pull request Aug 13, 2023
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
NathanWalker added a commit to Ombuweb/docs that referenced this pull request Aug 30, 2023
Co-authored-by: Nathan Walker <walkerrunpdx@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

3 participants