-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
--dir argument not working when combined with --ignore #125
Comments
I have the same issue too. |
I think I'll just rework it to |
Thank you, it's a good app =) |
Hi. Now, if I may suggest something, let me add : Indeed, the Ok: I know it is easier to ask for features than coding them. So my best regards and as said before : we appreciate your work. |
Hello. I saw that you committed a new version of Grive (0.5.1) that implements .griveignore . Thank ! I went on testing it. Unfortunately, I could not make it work. Maybe because I did not understand how to use it. From the indications in the readme file , I was not sure how to use it. First question : from what I understand, the .griveignore file is only taken in account when the no-remote-new or the upload-only modes are used, right ? Second question : Third question : Indeed, here is the test I did : The test files are the following : The 3rd file is a temporary LibreOffice file (obtained while Test_LO_Writer_file.odt is opened with LO). So I created the following .griveignore file, located at the root of the Grive folder.: I was not sure if I had to include *desktop.ini or **/desktop.ini as a pattern so I included both. It seems it is the **/*.gsheet pattern that achieves what I want. Now, this is what I get when running Grive on this test folder using the --dir attribute, I have this : i.e. : the .griveignore file is not taken in account. While, if I don't use the --dir flag, it is taken in account. |
Actually, after further tests, I conclude that : |
And, no I was wrong : the .griveignore file seems to work also when not using the normal bidirectional synchronization. |
Hello.
I have been trying to make work the --dir (or -s ) parameter, but without success. The whole directory gets synchronized.
However I just found this does not always happen:
the following command seems to work fine :
grive --dir TestSubDir
However the following synchronizes the whole Drive :
grive --dir TestSubDir --ignore 'desktop\.ini$|Thumbs\.db|\.gsheet$|\.gdoc$|\.gmap$|\.gform$|\.gslides$|\.gdraw$|\.gtable$|\.tmp\.drivedownload|\.odt#|\.ods#'
From what I can guess, I would bet that since the functioning of the --dir argument is to convert into a regexp, it is not compatible with using the --ignore argument, right ?
I use the --ignore argument to avoid synchronizing the temporary files, and system files (the computer is a dual-boot Windows-Linux).
The text was updated successfully, but these errors were encountered: