1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-19 13:19:44 +02:00

ref: Rename folder to dir for consistency

This commit is contained in:
Maksim Eltyshev 2024-11-12 17:07:04 +01:00
parent 917dcf31cf
commit 9794919fd2
8 changed files with 21 additions and 21 deletions

View file

@ -12,10 +12,10 @@ class LocalFileManager {
async move(sourceFilePath, filePathSegment) {
const { dir, base } = path.parse(filePathSegment);
const folderPath = buildPath(dir);
const filePath = path.join(folderPath, base);
const dirPath = buildPath(dir);
const filePath = path.join(dirPath, base);
await fs.promises.mkdir(folderPath);
await fs.promises.mkdir(dirPath);
await fse.move(sourceFilePath, filePath);
return filePath;
@ -38,8 +38,8 @@ class LocalFileManager {
}
// eslint-disable-next-line class-methods-use-this
async deleteFolder(folderPathSegment) {
await rimraf(buildPath(folderPathSegment));
async deleteDir(dirPathSegment) {
await rimraf(buildPath(dirPathSegment));
}
// eslint-disable-next-line class-methods-use-this