keeps / roda-in

Tool to create Submission Information Packages (SIP)
http://rodain.roda-community.org
GNU Lesser General Public License v3.0
23 stars 11 forks source link

O roda-in não se apercebe desse novo ficheiro #236

Open jmaferreira opened 7 years ago

jmaferreira commented 7 years ago

[rodain-app-2.0.0-beta.1]

By Omar

sleroux-keep commented 7 years ago

Melhoro o watcher (se a pasta se mativer do lado esquerdo, ou seja, se apenas passares filhos da pasta para o centro, ao adicionar um ficheiro na pasta depois de iniciado o Roda-In este aparece na interface...), ou ao remover a pasta atualizo o seu conteúdo ?

sleroux-keep commented 7 years ago

Melhorei o watcher @ 8c2f691ddfcb71852ec0160015ab181ca0630a4d (se uma pasta estiver mapeada e for adicionada um item novo, pasta ou ficheiro, dentro desta pasta, os ficheiros novos aparecem do lado esquerdo...).

Problema: E se fizer o contrário... Ou seja, se remover manualmente uma pasta mapeada... Preciso de atualizar o painel central, certo?

jmaferreira commented 7 years ago

@luis100 has warned me that using the watcher is not a good strategy as it tends to leave open files (too many open files issue). A better option is to add a refresh button (or right-click popup).

sleroux-keep commented 7 years ago

I'll remove the already existing WatchService (associated to the File Explorer) and add a button in the bottom of the explorer panel (where there's already the "ignore" and "associate" buttons).

jmaferreira commented 7 years ago

There is a duality between the way the application defines the association rules, and the way the SIP stores its state (explicitly file by file, and not based on rules) that make this a specially hard task to fix.

This wont be done right now.