node-sword-interface 0.240.0 → 0.241.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-sword-interface",
3
- "version": "0.240.0",
3
+ "version": "0.241.0",
4
4
  "description": "Javascript (N-API) interface to SWORD library",
5
5
  "keywords": [
6
6
  "C++",
@@ -82,6 +82,13 @@ void FileSystemHelper::createBasicDirectories()
82
82
  #endif
83
83
  #endif
84
84
 
85
+ if (!this->fileExists(this->getUserDir())) {
86
+ ret = this->makeDirectory(this->getUserDir());
87
+ if (ret != 0) {
88
+ cerr << "Failed to create user dir at " << this->getUserDir() << endl;
89
+ }
90
+ }
91
+
85
92
  if (!this->fileExists(this->getUserSwordDir())) {
86
93
  ret = this->makeDirectory(this->getUserSwordDir());
87
94
  if (ret != 0) {