public VFSDirectory(string repositoryUri, string lockUri) { try { fsManager = VFS.getManager(); directory = fsManager.resolveFile(repositoryUri); if (!directory.exists()) { directory.createFolder(); } locker = fsManager.resolveFile(lockUri); if (!locker.exists()) { locker.createFolder(); } } catch (System.IO.IOException ioe) { throw ioe; } catch (Exception e) { throw e; } }
public VFSIndexOutput(FileObject file) { try { if (!file.exists()) file.createFile(); content = file.getContent().getRandomAccessContent(); } catch (System.IO.IOException ioe) { throw ioe; } catch (Exception e) { throw e; } }