On Thu, 2008-07-03 at 20:38 -0400, nikosapi wrote:
> How come util.get_free_disk_space passes "path" to os.path.dirname? 
> 
> This causes a bit of trouble for pathnames that don't end in "/".
> eg. os.path.dirname('/media/ipod') returns: '/media'
> 
> Is this a bug or is it needed for something?

Yep, this is probably a bug. It should not use os.path.dirname, from
what I can tell. This can also be the reason for the iPod code to mess
with the iTunesDB (the code to "reserve" space for the iTunesDB and
refuse to copy more onto the iPod than possible is already in place).

Thanks,
Thomas

_______________________________________________
gpodder-devel mailing list
gpodder-devel@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/gpodder-devel

Reply via email to