> OC_App::getAppPath('files_external')

Because we're in a namespace, any references to classes outside the namespace should have a leading \, so it should be
```php
\OC_App::getAppPath
```

The same thing goes for any other references to outside classes in this file (Exception, OC\Files\Storage\Common, Net_SFTP and more)