@putout/operator-filesystem 2.9.1 → 2.9.2

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
@@ -169,7 +169,7 @@ module.exports.createFile = (dirPath, name, content = '') => {
169
169
 
170
170
  const dirPathFiles = getFiles(dirPath);
171
171
  const parentFilename = getFilename(dirPath);
172
- const filename = `${parentFilename}/${name}`;
172
+ const filename = join(parentFilename, name);
173
173
 
174
174
  const typeProperty = createType('file');
175
175
  const filenameProperty = createFilename(filename);
@@ -192,7 +192,7 @@ function getFiles(dirPath) {
192
192
  module.exports.createDirectory = (dirPath, name) => {
193
193
  const dirPathFiles = getFiles(dirPath);
194
194
  const parentFilename = getFilename(dirPath);
195
- const filename = `${parentFilename}/${name}`;
195
+ const filename = join(parentFilename, name);
196
196
 
197
197
  const typeProperty = createType('directory');
198
198
  const filesProperty = createFiles([]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@putout/operator-filesystem",
3
- "version": "2.9.1",
3
+ "version": "2.9.2",
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",