public function addToLibrary(User $user, File $file)
    {
        $folder = new FolderImpl($this->filesDir->getAbsolutePath()."/".$user->getUniqueId());
        $ext = $file->getExtension() == ""?"":".".$file->getExtension();
        $name = str_replace(".", "", uniqid("",true)).$ext;
        return $this->addToLibraryHelper($folder, $file, $name);
    }