@@ -22,8 +22,9 @@ |
||
| 22 | 22 | { |
| 23 | 23 | // Use the Windows COM interface |
| 24 | 24 | $fsobj = new \COM('Scripting.FileSystemObject'); |
| 25 | - if (dirname($path) == '.') |
|
| 26 | - $this->path = ((substr(getcwd(), -1) == DIRECTORY_SEPARATOR) ? getcwd() . basename($path) : getcwd() . DIRECTORY_SEPARATOR . basename($path)); |
|
| 25 | + if (dirname($path) == '.') { |
|
| 26 | + $this->path = ((substr(getcwd(), -1) == DIRECTORY_SEPARATOR) ? getcwd() . basename($path) : getcwd() . DIRECTORY_SEPARATOR . basename($path)); |
|
| 27 | + } |
|
| 27 | 28 | $f = $fsobj->GetFile($path); |
| 28 | 29 | return BigInteger::of($f->Size); |
| 29 | 30 | } |
@@ -1,10 +1,10 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Created by PhpStorm. |
|
| 4 | - * User: jkuchar1 |
|
| 5 | - * Date: 31.1.2016 |
|
| 6 | - * Time: 16:49 |
|
| 7 | - */ |
|
| 3 | + * Created by PhpStorm. |
|
| 4 | + * User: jkuchar1 |
|
| 5 | + * Date: 31.1.2016 |
|
| 6 | + * Time: 16:49 |
|
| 7 | + */ |
|
| 8 | 8 | |
| 9 | 9 | namespace BigFileTools; |
| 10 | 10 | |