Lazza / Fuji

Graphical interface for the forensic logical acquisition of Mac computers
https://andrealazzarotto.com
GNU General Public License v3.0
30 stars 3 forks source link

Update fuji.py - Intercepting spaces #4

Closed BrunoFischerGermany closed 3 weeks ago

BrunoFischerGermany commented 1 month ago

If a user enters a blank character in the “Source”, “Temp Image Location” or “DMG Destination” fields in Fuji, the system uses Line 205 self.Hide() is executed, but the app can no longer be used.

Error:

File "/Fuji/fuji.py", line 206, in on_continue OVERVIEW_WINDOW.update_overview() File "/Fuji/fuji.py", line 293, in update_overview result = check.execute(PARAMS) ^^^^^^^^^^^^^^^^^^^^^ File "/Fuji/checks/free_space.py", line 50, in execute destination_free = self._get_free_space(params.destination) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Fuji/checks/free_space.py", line 18, in _get_free_space statvfs = os.statvfs(path) ^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: ' '

This behavior is prevented with .stripe().

Lazza commented 3 weeks ago

Thank you!