Creates unique file names generated from a base name, by appending a sequence number
before the file extension.
For example, given the file name 'foo.txt', will return 'foo_000.txt', 'foo_001.txt', etc.
If the iterator exceeds the specified number of digits, it will start to append additional
digits to ensure uniqueness, e.g. 'foo_999.txt', 'foo_1000.txt', 'foo_1001.txt', etc.
Annotations
@ThreadSafe()
Linear Supertypes
Iterator[String], TraversableOnce[String], GenTraversableOnce[String], AnyRef, Any
Ordering
Alphabetic
By inheritance
Inherited
IncrementingFileName
Iterator
TraversableOnce
GenTraversableOnce
AnyRef
Any
Hide All
Show all
Visibility
Public
All
Instance Constructors
newIncrementingFileName(path: String, digits: Int = 3)
path
file name path
digits
number of digits used to format the sequence number
Type Members
classGroupedIterator[B >: A] extends AbstractIterator[Seq[B]] with Iterator[Seq[B]]
Creates unique file names generated from a base name, by appending a sequence number before the file extension.
For example, given the file name 'foo.txt', will return 'foo_000.txt', 'foo_001.txt', etc. If the iterator exceeds the specified number of digits, it will start to append additional digits to ensure uniqueness, e.g. 'foo_999.txt', 'foo_1000.txt', 'foo_1001.txt', etc.