@@ -3266,11 +3266,8 @@ def _index_locally(self, folder):
3266
3266
else :
3267
3267
print (f'\n Indexing folder "{ folder } "...' , flush = True )
3268
3268
3269
- print ("FUNCTION: _index_locally" )
3270
3269
# Get the path to the hotspots CSV file
3271
3270
folder_hotspot = self .get_hotspots_path (folder )
3272
- print (f"_index_locally: folder_hotspot: { folder_hotspot } " )
3273
- print (f"_index_locally: folder: { folder } " )
3274
3271
3275
3272
# If the folder is already indexed don't run pwalk again
3276
3273
if os .path .isfile (folder_hotspot ):
@@ -5172,10 +5169,6 @@ def get_hotspots_path(self, folder):
5172
5169
5173
5170
# create hotspots directory if it does not exist
5174
5171
os .makedirs (hotspotdir , exist_ok = True , mode = 0o775 )
5175
- print ("FUNCTION: get_hotspots_path" )
5176
- print (f'get_hotspots_path: Hotspots directory: { hotspotdir } ' )
5177
- print (f'get_hotspots_path: Folder: { folder } ' )
5178
- print (f'get_hotspots_path: hsfile: { self ._get_hotspots_file (folder )} ' )
5179
5172
5180
5173
# Get the full path name of the new hotspots file
5181
5174
return os .path .join (hotspotdir , self ._get_hotspots_file (folder ))
@@ -5187,15 +5180,20 @@ def _get_hotspots_file(self, folder):
5187
5180
traildir = ''
5188
5181
hsfile = folder .replace ('/' , '+' ) + '.csv'
5189
5182
print ("FUNCTION: _get_hotspots_file" )
5190
- print (f'_get_hotspots_file: hsfile pre: { hsfile } ' )
5183
+ print (f'hsfile pre: { hsfile } ' )
5191
5184
for mnt in mountlist :
5185
+ print (f'mnt: { mnt } ' )
5192
5186
if folder .startswith (mnt ['mount_point' ]):
5187
+ print ("it starts with mount point" )
5193
5188
traildir = self ._get_last_directory (mnt ['mount_point' ])
5189
+ print ("traildir: " , traildir )
5194
5190
hsfile = folder .replace (mnt ['mount_point' ], '' )
5191
+ print ("hsfile replace: " , hsfile )
5195
5192
hsfile = f'@{ traildir } +{ hsfile } '
5193
+ print ("hsfile: " , hsfile )
5196
5194
if len (hsfile ) > 255 :
5197
5195
hsfile = f'{ hsfile [:25 ]} .....{ hsfile [- 225 :]} '
5198
- print (f'_get_hotspots_file: hsfile post: { hsfile } ' )
5196
+ print (f'hsfile post: { hsfile } ' )
5199
5197
return hsfile
5200
5198
5201
5199
def _walker (self , top , skipdirs = ['.snapshot' ,]):
0 commit comments