When I create a directory outside the app, it's not shown

Bug #1190676 reported by Leo Arias
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu File Manager App
Fix Released
Low
Carlos Jose Mazieri

Bug Description

The app should listen for modifications on the opened directory, in order to show files and folders that are created from other application or the command line.

Currently, if I have this app opened on the home and I create a directory there, the new directory is not shown until I click the home button.

To reproduce:
qmlscene ubuntu-filemanager-app.qml
On a terminal, mkdir ~/test
-> The new test folder doesn't appear on the file manager app.
Click the Home button.
-> The new folder appears

Leo Arias (elopio)
Changed in ubuntu-filemanager-app:
status: New → Confirmed
Changed in ubuntu-filemanager-app:
importance: Undecided → Low
Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

Yea, right now it does listen to other apps changes.

It would be necessary to have a watcher and change some other things.

Changed in ubuntu-filemanager-app:
assignee: nobody → Carlos Jose Mazieri (carlos-mazieri)
Changed in ubuntu-filemanager-app:
status: Confirmed → In Progress
Revision history for this message
Carlos Jose Mazieri (carlos-mazieri) wrote :

An auto refresh timer checks every 3 seconds if the current path has been modified since last modification, if so reads the directory and compares it with the current content.

This feature is disabled by default since the plugin is used by other applications like Music App.
To enable that in the UI:
          enableExternalFSWatcher: true

Files added/removed and modfied (size, modification time and permissions ) by other applications are refreshed.

Main code: file dirmodel.cpp
http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/plugin/view/head:/folderlistmodel/dirmodel.cpp#L1060
http://bazaar.launchpad.net/~ubuntu-filemanager-dev/ubuntu-filemanager-app/plugin/view/head:/folderlistmodel/dirmodel.cpp#L1301

Main code: file iorequest.cpp

Changed in ubuntu-filemanager-app:
status: In Progress → Fix Committed
Changed in ubuntu-filemanager-app:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.