diff options
author | James Moger <james.moger@gitblit.com> | 2015-11-19 17:55:38 -0500 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2015-11-19 17:55:38 -0500 |
commit | e41e8f8c3bc9f5edab1d271464364f95620ece8c (patch) | |
tree | 2b6f335d0ab54ed3735573ef10aaef66dd55d76f /src/main/java/com/gitblit | |
parent | fa357d6afe6e33316716e6bc0495f91b05ac2268 (diff) | |
download | gitblit-e41e8f8c3bc9f5edab1d271464364f95620ece8c.tar.gz gitblit-e41e8f8c3bc9f5edab1d271464364f95620ece8c.zip |
Create filestore directory on startup
Diffstat (limited to 'src/main/java/com/gitblit')
-rw-r--r-- | src/main/java/com/gitblit/manager/FilestoreManager.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/manager/FilestoreManager.java b/src/main/java/com/gitblit/manager/FilestoreManager.java index 33672e4a..c15de5b4 100644 --- a/src/main/java/com/gitblit/manager/FilestoreManager.java +++ b/src/main/java/com/gitblit/manager/FilestoreManager.java @@ -102,8 +102,10 @@ public class FilestoreManager implements IFilestoreManager { @Override public IManager start() { - //Try to load any existing metadata - File metadata = new File(getStorageFolder(), METAFILE); + // Try to load any existing metadata + File dir = getStorageFolder(); + dir.mkdirs(); + File metadata = new File(dir, METAFILE); if (metadata.exists()) { Collection<FilestoreModel> items = null; |