You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the information on the gio approach likely that can be leveraged here as well, will look into that. The st_dev has been somewhat problematic in I believe more than one case.
In overlayfs, directories always have
st_dev
from lower filesystem whereas files can havest_dev
either from lower filesystem or upper filesystem.Due to this behavior, https://github.com/arsenetar/send2trash/blob/1.8.1b0/send2trash/plat_other.py#L178 always fails when the file's
st_dev
is from the upper filesystem.gio already tackled this issue, by avoiding comparison b/w
file_dev
andtrash_dev
, instead, it comparesparent_dir(file).dev
totrash_dev
(ref: https://gitlab.gnome.org/GNOME/glib/-/blob/main/gio/glocalfile.c#L2019).I think send2trash also can adapt the same approach.
The text was updated successfully, but these errors were encountered: