Frage

I am trying to display the full path of a selected file in a chrome app on linux. When I invoke the filesystem getDisplayPath api I get the path of the selected file prefixed with ~. For example instead of /home/user/file.txt I get ~/file.txt. Is there a way to force the first format. A code snippet would be nice. Thanks in advance.

War es hilfreich?

Lösung

Currently, there is no way to get the full path.

This is an open enhancement in Chrome (but not much happening there): https://code.google.com/p/chromium/issues/detail?id=322952

Source: Getting the full path of a DirectoryEntry

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top