@@ -48,22 +48,11 @@ func shouldUpload(relativePath string, stat os.FileInfo, s *SyncConfig, isInitia
4848 }
4949
5050 // Exclude changes on the upload exclude list
51- if s .uploadIgnoreMatcher != nil {
52- if s .uploadIgnoreMatcher .MatchesPath (relativePath ) {
53- // Add to file map and prevent download if local file is newer than the remote one
54- if s .fileIndex .fileMap [relativePath ] != nil && s .fileIndex .fileMap [relativePath ].Mtime < ceilMtime (stat .ModTime ()) {
55- // Add it to the fileMap
56- s .fileIndex .fileMap [relativePath ] = & fileInformation {
57- Name : relativePath ,
58- Mtime : ceilMtime (stat .ModTime ()),
59- Size : stat .Size (),
60- IsDirectory : stat .IsDir (),
61- }
62- }
63-
64- return false
65- }
66- }
51+ // if s.uploadIgnoreMatcher != nil {
52+ // if s.uploadIgnoreMatcher.MatchesPath(relativePath) {
53+ // return false
54+ // }
55+ // }
6756
6857 // Exclude local symlinks
6958 if stat .Mode ()& os .ModeSymlink != 0 {
@@ -109,13 +98,6 @@ func shouldDownload(fileInformation *fileInformation, s *SyncConfig) bool {
10998 }
11099 }
111100
112- // Update mode, gid & uid if exists
113- if s .fileIndex .fileMap [fileInformation .Name ] != nil {
114- s .fileIndex .fileMap [fileInformation .Name ].RemoteMode = fileInformation .RemoteMode
115- s .fileIndex .fileMap [fileInformation .Name ].RemoteGID = fileInformation .RemoteGID
116- s .fileIndex .fileMap [fileInformation .Name ].RemoteUID = fileInformation .RemoteUID
117- }
118-
119101 // Exclude files on the exclude list
120102 if s .downloadIgnoreMatcher != nil {
121103 if s .downloadIgnoreMatcher .MatchesPath (fileInformation .Name ) {
@@ -125,8 +107,6 @@ func shouldDownload(fileInformation *fileInformation, s *SyncConfig) bool {
125107
126108 // Exclude symlinks
127109 if fileInformation .IsSymbolicLink {
128- // Add them to the fileMap though
129- s .fileIndex .fileMap [fileInformation .Name ] = fileInformation
130110 return false
131111 }
132112
0 commit comments