faker/provider/file

    Dark Mode
Search:
Group by:

Procs

proc fileExtension(f: Faker; category = ""): string {...}{.raises: [KeyError],
    tags: [].}
Generates random fileExtension.

Example:

let f = newFaker()
echo f.fileExtension(category="")
proc fileName(f: Faker; category = ""; extension = ""): string {...}{.
    raises: [Exception, ValueError], tags: [RootEffect].}
Generates random fileName.

Example:

let f = newFaker()
echo f.fileName(category="", extension="")
proc filePath(f: Faker; depth = 1; category = ""; extension = ""): string {...}{.
    raises: [Exception, ValueError], tags: [RootEffect].}
Generates random filePath.

Example:

let f = newFaker()
echo f.filePath(depth=1, category="", extension="")
proc mimeType(f: Faker; category = ""): string {...}{.raises: [KeyError], tags: [].}
Generates random mimeType.

Example:

let f = newFaker()
echo f.mimeType(category="")
proc unixDevice(f: Faker; prefix = ""): string {...}{.raises: [ValueError], tags: [].}
Generates random unixDevice.

Example:

let f = newFaker()
echo f.unixDevice(prefix="")
proc unixPartition(f: Faker; prefix = ""): string {...}{.raises: [ValueError],
    tags: [].}
Generates random unixPartition.

Example:

let f = newFaker()
echo f.unixPartition(prefix="")