mirror of
https://github.com/fzaninotto/Faker.git
synced 2025-03-19 23:09:47 +01:00
Readme corrections for File provider
This commit is contained in:
parent
e976037f20
commit
183d0bad97
14
readme.md
14
readme.md
@ -193,17 +193,17 @@ Each of the generator properties (like `name`, `address`, and `lorem`) are calle
|
||||
|
||||
### `Faker\Provider\File`
|
||||
|
||||
fileExtension // 'avi'
|
||||
mimeType // 'video/x-msvideo'
|
||||
/**
|
||||
* Copy a random file from the source directory to the target directory and returns the filename/fullpath
|
||||
*
|
||||
* @param string $sourceDirectory The directory to look for random file taking
|
||||
* @param string $targetDirectory
|
||||
* @param boolean $fullPath Wether to have the full path or just the filename
|
||||
* @param $sourceDirectory The directory to look for random file taking
|
||||
* @param $targetDirectory
|
||||
* @param $fullPath Wether to have the full path or just the filename (default true)
|
||||
*/
|
||||
fileCopy($sourceDir, $targetDir) // '/path/to/targetDir/13b73edae8443990be1aa8f1a483bc27.jpg'
|
||||
fileCopy($sourceDir, $targetDir, false) // '13b73edae8443990be1aa8f1a483bc27.jpg'
|
||||
fileExtension // 'avi'
|
||||
mimeType // 'video/x-msvideo'
|
||||
file($sourceDir, $targetDir) // '/path/to/targetDir/13b73edae8443990be1aa8f1a483bc27.jpg'
|
||||
file($sourceDir, $targetDir, false) // '13b73edae8443990be1aa8f1a483bc27.jpg'
|
||||
|
||||
### `Faker\Provider\Image`
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user