/** * Transform path for resource event. * @param path Path * @return Transformed path */ private String transformPath(String path) { if (fsMode == FsMode.FILEVAULT_XML) { return PlatformNameFormat.getRepositoryPath(path); } else { return path; } }
public void mkdir(String path) throws IOException, RepositoryException { changes.add(new Change(Type.MKDIR, PlatformNameFormat.getRepositoryPath(path), path, null)); }
private void addIgnores(File dir, File file) throws VltException, IOException { VltDirectory d = new VltDirectory(ctx, dir); String root = d.getAggregatePath(); if (root == null) { root = dir.getAbsolutePath().substring(rootLength); root = PlatformNameFormat.getRepositoryPath(root); log.info("Unable to detect correct repository path for {}. guessed: {}", dir.getPath(), root); } for (Object o: FileUtils.readLines(file, "utf-8")) { addIgnored(root, o.toString()); } }
public VaultFileOutput add(String path, VaultInputSource input) throws IOException, RepositoryException { String repoPath = PlatformNameFormat.getRepositoryPath(path, true); String repoName = Text.getName(repoPath); String parentPath = Text.getRelativeParent(path, 1);