From abbf76cafb09545e1302def06ca6da2391972afa Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?C=C3=A9dric=20Moreau?= <cem.moreau@gmail.com>
Date: Mon, 9 Apr 2018 08:54:46 +0200
Subject: [PATCH] [enh] Refactoring: type FileDAL.confDAL

---
 app/lib/dal/fileDAL.ts              | 2 +-
 app/lib/dal/fileDALs/AbstractCFS.ts | 2 +-
 app/lib/dal/fileDALs/CFSCore.ts     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/app/lib/dal/fileDAL.ts b/app/lib/dal/fileDAL.ts
index 406711aa3..04c5b2cd6 100644
--- a/app/lib/dal/fileDAL.ts
+++ b/app/lib/dal/fileDAL.ts
@@ -63,7 +63,7 @@ export class FileDAL {
   profile:string
 
   powDAL:PowDAL
-  confDAL:any
+  confDAL:ConfDAL
   metaDAL:MetaDAL
   peerDAL:PeerDAL
   blockDAL:any
diff --git a/app/lib/dal/fileDALs/AbstractCFS.ts b/app/lib/dal/fileDALs/AbstractCFS.ts
index a8c7d3277..dae85e902 100644
--- a/app/lib/dal/fileDALs/AbstractCFS.ts
+++ b/app/lib/dal/fileDALs/AbstractCFS.ts
@@ -16,7 +16,7 @@ import {Initiable} from "../sqliteDAL/Initiable"
 
 export abstract class AbstractCFS extends Initiable {
 
-  protected coreFS:CFSCore
+  public coreFS:CFSCore
   protected dal:any
 
   constructor(rootPath:string, qioFS:any) {
diff --git a/app/lib/dal/fileDALs/CFSCore.ts b/app/lib/dal/fileDALs/CFSCore.ts
index 0de15b707..094ca53b2 100644
--- a/app/lib/dal/fileDALs/CFSCore.ts
+++ b/app/lib/dal/fileDALs/CFSCore.ts
@@ -111,7 +111,7 @@ export class CFSCore {
    * @param deep Wether to remove the file in the root core or not.
    * @returns {*} Promise of removal.
    */
-  async remove(filePath:string, deep:boolean): Promise<void> {
+  async remove(filePath:string, deep = false): Promise<void> {
     // Make a deep physical deletion
     // Root core: physical deletion
     return this.qfs.remove(path.join(this.rootPath, filePath));
-- 
GitLab