Rxova
Skip to content

attempt

function attempt(
existing,
file,
rules?): FileAttempt;

Try to accept one file against a list.

Returns what would happen without mutating anything, so the caller can report each rejection with its own reason rather than silently dropping half a selection.

ParameterType
existingFile[]
fileFile
rulesFileRules

FileAttempt