We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 202adea commit 9f2da9fCopy full SHA for 9f2da9f
livesync/folder.py
@@ -55,7 +55,9 @@ def _get_ignores(self) -> List[str]:
55
path = self.source_path / '.syncignore'
56
if not path.is_file():
57
path.write_text('\n'.join(self.DEFAULT_IGNORES))
58
- return [line.strip() for line in path.read_text().splitlines() if not line.startswith('#')]
+ ignores = [line.strip() for line in path.read_text().splitlines() if not line.startswith('#')]
59
+ ignores += [ignore.rstrip('/\\') for ignore in ignores if ignore.endswith('/') or ignore.endswith('\\')]
60
+ return ignores
61
62
def get_summary(self) -> str:
63
summary = f'{self.source_path} --> {self.target}\n'
0 commit comments