-
Example:
Path path = new Path("documents/sales").append(new Path("January/axonivy.docx"));
Boolean isTrue = path.equals(new Path("documents/sales/January/axonivy.docs");
Example:
Path path = new Path("documents/sales").append("January/axonivy.docx");
Boolean isTrue = path.equals(new Path("documents/sales/January/axonivy.docs");
Example:
Path relativePath = new Path("documents/sales/January/axonivy.docx").relativize(new Path("documents/sales"))
Boolean isTrue = relativePath.equals(new Path("January/axonivy.docx"));
Adds a new document with the given path
Example:
Path path = new Path("documents/sales").append(new Path("January/axonivy.docx"));
Boolean isTrue = path.equals(new Path("documents/sales/January/axonivy.docs");
void
Deletes the document with the given path.
boolean
Example:
Boolean isTrue = new Path("documents/sales/January").endsWith(new Path("sales/January"));
Get a document by its path
Get all documents that are located below the given path.
Get all documents that are located directly below the given path.
boolean
Example:
Boolean isTrue = new Path("sales/January").isPostfixOf(new Path("documents/sales/January"));
boolean
Example:
Boolean isTrue = new Path("documents/sales").isPrefixOf(new Path("documents/sales/January"));
Example:
Path relativePath = new Path("documents/sales/January/axonivy.docx").relativize(new Path("documents/sales"))
Boolean isTrue = relativePath.equals(new Path("January/axonivy.docx"));
boolean
Example:
Boolean isTrue = new Path("documents/sales/January").startsWith(new Path("documents/sales"));