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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ktfile",
3
- "version": "0.0.2",
3
+ "version": "0.0.3",
4
4
  "description": "Fluent, modern and chainable File API\n\n",
5
5
  "main": "index.min.js",
6
6
  "types": "types/ktfile.d.ts",
@@ -130,14 +130,15 @@ export declare class FileSync extends IFile<ISyncFS> {
130
130
  */
131
131
  set lastModified(value: Date);
132
132
  /**
133
- * @description Gets the last access time of the file.
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
- * console.log("Last access time:", file.lastAccess);
139
- * // Output: Last access time: 2023-10-01T12:00:00.000Z
140
- * @returns {Date | null} The last access time of the file as a Date object, or null if the file does not exist.
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
  /**