Sets the string array value of an option. Duplicates and orphaned files will be removed. @param option option to be set @param paths file paths to be assigned
(final StringsOption option, final String[] paths)
| 252 | * @param paths file paths to be assigned |
| 253 | */ |
| 254 | public synchronized void setFiles(final StringsOption option, final String[] paths) { |
| 255 | final StringList list = new StringList(); |
| 256 | for(final String path : paths) { |
| 257 | final IOFile file = new IOFile(path); |
| 258 | if(file.exists()) list.addUnique(file.path()); |
| 259 | } |
| 260 | set(option, list.finish()); |
| 261 | } |
| 262 | |
| 263 | /** |
| 264 | * Sets the string value of an option. The file path will be normalized. |