[Development] New API design for file system operations

Volker Hilsheimer volker.hilsheimer at qt.io
Mon Feb 11 16:45:51 CET 2019


On 11 Feb 2019, at 16:07, Vitaly Fanaskov <vitaly.fanaskov at qt.io<mailto:vitaly.fanaskov at qt.io>> wrote:

Hi Volker,

The question for me is: why would an application (that is not a file explorer) want to do any of this? I honestly don’t see the use case.
I think in order to provide a user some useful information or suggest to perform some actions. For example, "moveToTrash" operation might fail for some reason. If you don't have a separate class for trash bin you can only report this error to a user, but neither fix a cause nor do something useful. For example, what if there is not enough space in the trash bin, or what if the trash bin configured to remove files without keeping them and so on... Wouldn't this sort of API useful for a developer who wants to use move-to-trash operation?


I see; let’s leave this email threat focused on the file system API discussion, and continue the scoping of the "moving to trash” (and general trash functionality) for the JIRA ticket at

https://bugreports.qt.io/browse/QTBUG-47703

:)

Cheers,
Volker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20190211/440f248f/attachment.html>


More information about the Development mailing list