claudesync 0.2.1__tar.gz → 0.2.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: claudesync
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: A tool to synchronize local files with Claude.ai projects
5
5
  Author-email: Jahziah Wagner <jahziah.wagner+pypi@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/jahwag/claudesync
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "claudesync"
7
- version = "0.2.1"
7
+ version = "0.2.2"
8
8
  authors = [
9
9
  {name = "Jahziah Wagner", email = "jahziah.wagner+pypi@gmail.com"},
10
10
  ]
@@ -35,14 +35,13 @@ class FileUploadHandler(FileSystemEventHandler):
35
35
  self.debouncer.debounce(self.upload_file, event.src_path)
36
36
 
37
37
  def should_ignore_file(self, file_path):
38
- # Check if the file is in a hidden directory
39
- rel_path = os.path.relpath(file_path, self.base_path)
40
- path_parts = rel_path.split(os.path.sep)
41
- if any(part.startswith('.') for part in path_parts[:-1]):
42
- return True
38
+ # Check if the file is in the .git directory
39
+ rel_path = os.path.relpath(file_path, self.base_path)
40
+ if rel_path.startswith('.git' + os.path.sep) or rel_path == '.git':
41
+ return True
43
42
 
44
- # Check if the file should be ignored based on .gitignore
45
- return should_ignore(self.gitignore, file_path, self.base_path)
43
+ # Check if the file should be ignored based on .gitignore
44
+ return should_ignore(self.gitignore, file_path, self.base_path)
46
45
 
47
46
  def api_request(self, method, url, **kwargs):
48
47
  try:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: claudesync
3
- Version: 0.2.1
3
+ Version: 0.2.2
4
4
  Summary: A tool to synchronize local files with Claude.ai projects
5
5
  Author-email: Jahziah Wagner <jahziah.wagner+pypi@gmail.com>
6
6
  Project-URL: Homepage, https://github.com/jahwag/claudesync
File without changes
File without changes
File without changes
File without changes