Return boolean from shell.showItemInFolder
This commit is contained in:
parent
05043432dd
commit
72558654ef
5 changed files with 38 additions and 37 deletions
|
@ -59,12 +59,12 @@ namespace platform_util {
|
|||
// TODO(estade): It would be nice to be able to select the file in the file
|
||||
// manager, but that probably requires extending xdg-open. For now just
|
||||
// show the folder.
|
||||
void ShowItemInFolder(const base::FilePath& full_path) {
|
||||
bool ShowItemInFolder(const base::FilePath& full_path) {
|
||||
base::FilePath dir = full_path.DirName();
|
||||
if (!base::DirectoryExists(dir))
|
||||
return;
|
||||
return false;
|
||||
|
||||
XDGOpen(dir.value(), true);
|
||||
return XDGOpen(dir.value(), true);
|
||||
}
|
||||
|
||||
void OpenItem(const base::FilePath& full_path) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue