pydio / cells-sync

Sync Client for Pydio Cells
https://pydio.com
GNU General Public License v3.0
35 stars 15 forks source link

Add support to ignore files/folder #36

Open lucasctd opened 3 years ago

lucasctd commented 3 years ago

I have asked this in the forum and they asked me to open an issue here.

I'd like to ask you to add a feature that allow us to prevent some files or folders from being synced. The behaviour would be similar to .gitignore files.

I would add some patterns to a file and the files or folders that matches them would not be synced. For example:

# .pydioignore file

/node_modules
/logs
/vendor
/build
/yarn-error.log

Thanks in advance.

MnlPhlp commented 1 year ago

Is this feature wanted by the developers? I played with cells a bit and also really needed this feature, because if have some code folders with build directories that i want to exclude.

I implemented a simple .cellsignore file that can be placed at the root of a local directory which is synced with cells-sync. The lines are then added to the Sync.Ignores list of the Sync object.

I would like to open a pull-request to ask for comments/improvement but the contributing.md says to create pull-requests "only if you're invited to". So can i create a pull-request for this?

cdujeu commented 1 year ago

hi @MnlPhlp yes that can be a good moment, we will have a "sync sprint" soon :-) just make sure to sign the CLA (pydio.com > community > contribute) and to fork the last version of the main branch !

dwdcth commented 1 year ago

I need this feature too, is it working now?