Skip to content

Commit c7a9716

Browse files
author
victor machado
committed
specific print in _get_hotspots_file
1 parent ff777ef commit c7a9716

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

Diff for: froster/froster.py

+7-9
Original file line numberDiff line numberDiff line change
@@ -3266,11 +3266,8 @@ def _index_locally(self, folder):
32663266
else:
32673267
print(f'\nIndexing folder "{folder}"...', flush=True)
32683268

3269-
print("FUNCTION: _index_locally")
32703269
# Get the path to the hotspots CSV file
32713270
folder_hotspot = self.get_hotspots_path(folder)
3272-
print(f"_index_locally: folder_hotspot: {folder_hotspot}")
3273-
print(f"_index_locally: folder: {folder}")
32743271

32753272
# If the folder is already indexed don't run pwalk again
32763273
if os.path.isfile(folder_hotspot):
@@ -5172,10 +5169,6 @@ def get_hotspots_path(self, folder):
51725169

51735170
# create hotspots directory if it does not exist
51745171
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)}')
51795172

51805173
# Get the full path name of the new hotspots file
51815174
return os.path.join(hotspotdir, self._get_hotspots_file(folder))
@@ -5187,15 +5180,20 @@ def _get_hotspots_file(self, folder):
51875180
traildir = ''
51885181
hsfile = folder.replace('/', '+') + '.csv'
51895182
print("FUNCTION: _get_hotspots_file")
5190-
print(f'_get_hotspots_file: hsfile pre: {hsfile}')
5183+
print(f'hsfile pre: {hsfile}')
51915184
for mnt in mountlist:
5185+
print(f'mnt: {mnt}')
51925186
if folder.startswith(mnt['mount_point']):
5187+
print("it starts with mount point")
51935188
traildir = self._get_last_directory(mnt['mount_point'])
5189+
print("traildir: ", traildir)
51945190
hsfile = folder.replace(mnt['mount_point'], '')
5191+
print("hsfile replace: ", hsfile)
51955192
hsfile = f'@{traildir}+{hsfile}'
5193+
print("hsfile: ", hsfile)
51965194
if len(hsfile) > 255:
51975195
hsfile = f'{hsfile[:25]}.....{hsfile[-225:]}'
5198-
print(f'_get_hotspots_file: hsfile post: {hsfile}')
5196+
print(f'hsfile post: {hsfile}')
51995197
return hsfile
52005198

52015199
def _walker(self, top, skipdirs=['.snapshot',]):

0 commit comments

Comments
 (0)