| @@ -2,8 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace h4kuna\Upload; | 
| 4 | 4 | |
| 5 | -use Nette\Application, | |
| 6 | - Nette\Http; | |
| 5 | +use Nette\Application; | |
| 6 | +use Nette\Http; | |
| 7 | 7 | |
| 8 | 8 | class Download | 
| 9 | 9 |  { | 
| @@ -29,6 +29,9 @@ | ||
| 29 | 29 | return $this->hostUrl . '/' . Upload\Utils::makeRelativePath($relativePath); | 
| 30 | 30 | } | 
| 31 | 31 | |
| 32 | + /** | |
| 33 | + * @param string $relativePath | |
| 34 | + */ | |
| 32 | 35 | public function isFileExists($relativePath) | 
| 33 | 36 |  	{ | 
| 34 | 37 | return $this->ftp->fileExists(Upload\Utils::makeRelativePath($relativePath)); | 
| @@ -2,8 +2,8 @@ | ||
| 2 | 2 | |
| 3 | 3 | namespace h4kuna\Upload\Driver; | 
| 4 | 4 | |
| 5 | -use h4kuna\Upload, | |
| 6 | - Nette\Http; | |
| 5 | +use h4kuna\Upload; | |
| 6 | +use Nette\Http; | |
| 7 | 7 | |
| 8 | 8 | class Ftp implements Upload\IDriver | 
| 9 | 9 |  { | 
| @@ -68,6 +68,6 @@ | ||
| 68 | 68 | |
| 69 | 69 | public function __toString() | 
| 70 | 70 |  	{ | 
| 71 | - return (string)$this->getRelativePath(); | |
| 71 | + return (string) $this->getRelativePath(); | |
| 72 | 72 | } | 
| 73 | 73 | } | 
| 74 | 74 | \ No newline at end of file |