Skip to content

Commit

Permalink
Update file.md
Browse files Browse the repository at this point in the history
  • Loading branch information
mrstebo committed Nov 23, 2018
1 parent 796b262 commit 7332a33
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions doc/file.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
# Faker::File

Available since version 1.6.4.
# Faker.File

```cs
Faker.File.Extension() //=> "mp3"
Faker.File.MimeType() //=> "application/pdf"
# Optional arguments: dir, name, extension, directory_separator
Faker.File.FileName() //=> "my-path/something_random.jpg"
Faker.File.FileName("path/to") //=> "path/to/something_random.jpg"
Faker.File.FileName("foo/bar", "baz") //=> "foo/bar/baz.zip"
Faker.File.FileName("foo/bar", "baz", "doc") //=> "foo/bar/baz.doc"
Faker.File.FileName("foo/bar", "baz", "mp3", @"\") //=> "foo\bar\baz.mp3"
Faker.File.FileName("foo/bar", "baz", "mp3", @"\") //=> "foo\bar\baz.mp3"

0 comments on commit 7332a33

Please sign in to comment.