@putout/operator-filesystem 6.4.0 → 6.4.1

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/lib/filesystem.js CHANGED
@@ -193,6 +193,10 @@ module.exports.removeEmptyDirectory = (dirPath) => {
193
193
  break;
194
194
 
195
195
  nextParentDir = getParentDirectory(dirPath);
196
+
197
+ if (!nextParentDir)
198
+ break;
199
+
196
200
  removeFile(dirPath);
197
201
  dirPath = nextParentDir;
198
202
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-filesystem",
3
- "version": "6.4.0",
3
+ "version": "6.4.1",
4
4
  "type": "commonjs",
5
5
  "author": "coderaiser <mnemonic.enemy@gmail.com> (https://github.com/coderaiser)",
6
6
  "description": "🐊Putout operator adds ability to filesystem referenced variables that was not defined",