Comment 5 for bug 1688696

Revision history for this message
Daniel Smith (lavalamp) wrote : Re: [Bug 1688696] Re: browsing to network drive causes division by zero

It's an afp mount. Not sure what ubuntu does to mount it. Ends up mounted
at /run/user/1000/gvfs/afp-volume:host=path.to.nas.local,user=daniel,volume=storage

On Sat, May 6, 2017 at 10:44 PM, Damon Lynch <email address hidden> wrote:

> If you can share the method / command for mounting the network share,
> I'll use that info to try to figure out the best way from Python for
> determining the storage space on it.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1688696
>
> Title:
> browsing to network drive causes division by zero
>
> Status in Rapid Photo Downloader:
> Fix Committed
>
> Bug description:
> Selecting a network drive as an export destination causes a division
> by zero error. I think it must break the space calculation. The
> download photos button is greyed out as a consequence.
>
>
> 2017-05-05 22:00:11 ERROR excepthook.py 67: An unhandled exception
> occurred
> 2017-05-05 22:00:11 ERROR excepthook.py 68: Traceback (most recent call
> last):
> File "/home/daniel/.local/lib/python3.5/site-packages/
> raphodo/destinationdisplay.py", line 578, in paintEvent
> videos_size_to_download=videos_size_to_download)
> File "/home/daniel/.local/lib/python3.5/site-packages/
> raphodo/destinationdisplay.py", line 99, in make_body_details
> percent_used = '{0:.0%}'.format(bytes_to_use / bytes_total)
> ZeroDivisionError: division by zero
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/rapid/+bug/1688696/+subscriptions
>