This repository has been archived by the owner on Jul 27, 2024. It is now read-only.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update VGriveClient.vala #72
base: master
Are you sure you want to change the base?
Update VGriveClient.vala #72
Changes from 1 commit
d3eb8aa
735fba5
b496e6a
5a89590
6b86664
e2712e7
c22b943
f20f455
157c58f
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The method
list_files
returns all the files childs oflpath
. Why do you use the list method?It's more efficient to ask only for the file we are checking with
get_file_id
instead of listing all the files.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I put this to try understand better why this delete function is deleting files that exists in both remote and local.
I have 3 guesses:
My thought was try to change the remote checking to make sure it's not it.
I know that is not efficient and I don't want to leave like that, but I want to make sure that the bug keep occurring, so we can put the remote check aside and turn back into
get_file_id
Makes sense what I'm trying to do?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it make sense.
Where I have got more problems is in the escape function with filenames that have "special" characters. Could you give me some "problematic" filename that you have detected?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some special caracters were something like:
~
#
accents in general (á ã õ ó)
But I don't think we need to escape this anymore. I made a lot of changes in the checking functions and seems to work fine with caracters.