You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,25 +165,32 @@ public class OpctConfig extends SettingsCore<OpctConfig.OpctValues> {
165
165
166
166
## PathUtils
167
167
168
-
The **PathUtils**`getNextPath` method provides a method to acquire the next file path in sequence for the specified base name and extension in the indicated target folder.
168
+
The **PathUtils**`getNextPath` method provides a method to acquire the next file path in sequence for the specified base name and extension in the indicated target folder. If the target folder already contains at least one file that matches the specified base name and extension, the algorithm used to select the next path will always return a path whose index is one more than the highest index that currently exists. (If a single file with no index is found, its implied index is 1.)
169
+
170
+
##### Example usage of `getNextPath`
169
171
170
172
```java
173
+
...
174
+
175
+
/*
176
+
* This example gets the next path in sequence for base name `artifact`
177
+
* and extension `txt` in the TestNG output directory.
178
+
*
179
+
* For purposes of this example, the output directory already contains
180
+
* the following files: `artifact.txt`, `artifact-3.txt`
181
+
*/
171
182
172
-
/*
173
-
* This example gets the next path in sequence for base name `artifact` and extension `txt` in the TestNG output directory.
174
-
*
175
-
* For purposes of this example, the output directory already contains the following files: `artifact.txt`, `artifact-3.txt`
0 commit comments