fix(smartfs.provider.node): Default createDirectory to recursive=true when option not provided in Node provider
This commit is contained in:
@@ -1,5 +1,12 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2025-11-30 - 1.1.3 - fix(smartfs.provider.node)
|
||||||
|
Default createDirectory to recursive=true when option not provided in Node provider
|
||||||
|
|
||||||
|
- Node provider: createDirectory now defaults to recursive=true when options.recursive is undefined.
|
||||||
|
- Prevents errors when creating nested directories without explicitly passing the recursive option.
|
||||||
|
- No API signature changes; behavior change is limited to the Node provider implementation.
|
||||||
|
|
||||||
## 2025-11-29 - 1.1.2 - fix(SmartFsProviderNode)
|
## 2025-11-29 - 1.1.2 - fix(SmartFsProviderNode)
|
||||||
Fix Node provider watch path handling and remove main test entry
|
Fix Node provider watch path handling and remove main test entry
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
*/
|
*/
|
||||||
export const commitinfo = {
|
export const commitinfo = {
|
||||||
name: '@push.rocks/smartfs',
|
name: '@push.rocks/smartfs',
|
||||||
version: '1.1.2',
|
version: '1.1.3',
|
||||||
description: 'a cross platform extendable fs module'
|
description: 'a cross platform extendable fs module'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -237,7 +237,7 @@ export class SmartFsProviderNode implements ISmartFsProvider {
|
|||||||
|
|
||||||
public async createDirectory(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void> {
|
public async createDirectory(path: string, options?: { recursive?: boolean; mode?: number }): Promise<void> {
|
||||||
await fs.mkdir(path, {
|
await fs.mkdir(path, {
|
||||||
recursive: options?.recursive,
|
recursive: options?.recursive ?? true,
|
||||||
mode: options?.mode,
|
mode: options?.mode,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user