Accept strings in File.createDirectoryIfNecessary
This commit is contained in:
parent
e9e6a8313d
commit
fc8037a83b
1 changed files with 1 additions and 0 deletions
|
@ -962,6 +962,7 @@ Zotero.File = new function(){
|
||||||
|
|
||||||
|
|
||||||
this.createDirectoryIfMissing = function (dir) {
|
this.createDirectoryIfMissing = function (dir) {
|
||||||
|
dir = this.pathToFile(dir);
|
||||||
if (!dir.exists() || !dir.isDirectory()) {
|
if (!dir.exists() || !dir.isDirectory()) {
|
||||||
if (dir.exists() && !dir.isDirectory()) {
|
if (dir.exists() && !dir.isDirectory()) {
|
||||||
dir.remove(null);
|
dir.remove(null);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue