https://bugs.freedesktop.org/show_bug.cgi?id=78315
Priority: medium
Bug ID: 78315
Assignee: [email protected]
Summary: Provide Enhanced Path Checking capability
Severity: enhancement
Classification: Unclassified
OS: All
Reporter: [email protected]
Hardware: Other
Status: UNCONFIRMED
Version: 4.2.3.3 release
Component: BASIC
Product: LibreOffice
There does not currently exist an easy method to determine whether a path
exists and is a directory, and whether it is available for read and optionally
for write access. Basic functions ( for example, the Dir() function, FilePicker
dialog, and FolderPicker dialog ) do not operate as expected or consistently
when confronted with error cases.
This functionality could be added as a new method of the Simple File Access
object. There are numerous ways in which paths can have temporary of permanent
failures due to permissions, SELinux violations, network failures, and network
share security errors to name a few. Ideally with this enhanced method of
checking for errors, the more obvious areas of potential failures would be
screened out (e.g. – file does not exist) and it would provide a catch-all for
all other failure cases. This method should also have the option to check for
write access and return feedback if write access is not possible for any
reason.
As another alternative, there is very similar functionality already included in
the “setDisplayDirectory()” method of the FilePicker dialog when the
LibreOffice dialog style is used. It will generate a user warning or error to
the user but no feedback is provided to the program (for screen shots and more
information see 3.2.2, “Debug Level Three (FilePicker Behavior)“ regarding
Linux and 3.3.2, “Debug Level Three (FilePicker Behavior)“ regarding Windows).
I will upload a document with screen shots and other supporting documentation.
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs