toFilePath function

String toFilePath(
  1. String rawName
)

Converts rawName to the expected filePath

Implementation

String toFilePath(String rawName) =>
    rawName.trim().replaceAll(' ', '/').replaceAll(RegExp(r'\/+'), '/');