Skip to content

Conversation

@azul
Copy link
Contributor

@azul azul commented Jun 20, 2020

We need the relative path inside a users home directory
to fetch the folder content for the filepicker.

$file->getPath() gets the absolute path
including username and files.

Instead use $path which we already know and append the file name.

Frankly I have no idea if this is the right way to do this in the Controller
as I am not familiar with the OCP/Files API. This works for me and i hope it illustrates the problem. Feel free to fix in a different way.

@azul azul requested a review from juliusknorr June 20, 2020 08:19
@azul azul force-pushed the fix/workspace-path branch from cd00389 to 8fb8149 Compare June 20, 2020 08:19
@azul
Copy link
Contributor Author

azul commented Jun 20, 2020

Split this one from #879 as it's a fix for an existing problem and should be easier to review and get in.

@azul azul mentioned this pull request Jun 20, 2020
6 tasks
Copy link
Member

@juliusknorr juliusknorr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch. Small comment, otherwise good from my side 👍

We need the relative path inside a users home directory
to fetch the folder content for the filepicker.

$file->getPath() gets the absolute path
including username and files.

Signed-off-by: Azul <azul@riseup.net>
@azul azul force-pushed the fix/workspace-path branch from 8fb8149 to 9b413af Compare June 22, 2020 07:40
@azul
Copy link
Contributor Author

azul commented Jun 22, 2020

@juliushaertl updated according to your comment.

@azul azul requested a review from juliusknorr June 22, 2020 08:17
@juliusknorr juliusknorr added 4. to release bug Something isn't working labels Jun 22, 2020
@juliusknorr juliusknorr added this to the 20.0.0 milestone Jun 22, 2020
@juliusknorr juliusknorr merged commit e4019e7 into master Jun 22, 2020
@juliusknorr juliusknorr deleted the fix/workspace-path branch June 22, 2020 09:20
@MorrisJobke MorrisJobke modified the milestones: 20.0.0, Nextcloud 20 Jul 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to release bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants