ktfile 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/types/sync/FileSync.d.ts +7 -6
package/package.json
CHANGED
package/types/sync/FileSync.d.ts
CHANGED
|
@@ -130,14 +130,15 @@ export declare class FileSync extends IFile<ISyncFS> {
|
|
|
130
130
|
*/
|
|
131
131
|
set lastModified(value: Date);
|
|
132
132
|
/**
|
|
133
|
-
* @description
|
|
134
|
-
* The last access time is the time when the file was last accessed in the file system.
|
|
135
|
-
* If the file does not exist, it returns null.
|
|
133
|
+
* @description Checks if the file exists.
|
|
136
134
|
* @example
|
|
137
135
|
* const file = new FileSync("path/to/file.txt");
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*
|
|
136
|
+
* if (file.exists) {
|
|
137
|
+
* console.log("File exists.");
|
|
138
|
+
* } else {
|
|
139
|
+
* console.log("File does not exist.");
|
|
140
|
+
* }
|
|
141
|
+
* @returns {boolean | null} True if the file exists, false if it does not, or null if the file system cannot be accessed.
|
|
141
142
|
*/
|
|
142
143
|
get exists(): boolean | null;
|
|
143
144
|
/**
|