Skip to content
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

Apply the same file filtering in both directions #45

Closed
eblen opened this issue Jun 9, 2011 · 2 comments
Closed

Apply the same file filtering in both directions #45

eblen opened this issue Jun 9, 2011 · 2 comments

Comments

@eblen
Copy link
Collaborator

eblen commented Jun 9, 2011

See comments for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=348939

This is non-trivial, because we need to refactor the code a little, separating out file matching and binary file filtering, and of course filtering binary files remotely is not easy.

@rolandschulz
Copy link
Owner

yes we should just ignore the binary issue remotely for now. Unless we have
some idea how we can do it. But I like that it is in the same function.
Maybe we can just let the function autodetect whether this is a remote or
local path and in one case just ignore the binary issue. I like that better
than that the caller has to have this logic (e.g. by calling only one or 2
functions depending on whether it is local or remote).

On Thu, Jun 9, 2011 at 5:20 PM, eblen <
reply@reply.github.com>wrote:

See comments for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=348939

This is non-trivial, because we need to refactor the code a little,
separating out file matching and binary file filtering, and of course
filtering binary files remotely is not easy.

Reply to this email directly or view it on GitHub:
#45

ORNL/UT Center for Molecular Biophysics cmb.ornl.gov
865-241-1537, ORNL PO BOX 2008 MS6309

@eblen
Copy link
Collaborator Author

eblen commented Jun 21, 2011

Done in commit 21c6af7 We still use only one function, but now it is invoked for both directions. To solve the binary file issue, the filter returns false (do not filter) for files not recognized by CDT. Since the filter only inputs file names, it can only look at local files. Thus, remote files are not sync'ed if they have the same name as binary files filtered on the local side, which is fine.

This particular issue is resolved. A complete solution to file filtering, though, will be more complex and involve a mechanism for users to select/unselect files to be filtered.

@eblen eblen closed this as completed Jun 21, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants