Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
415158d730 | ||
|
|
cd192744c2 | ||
|
|
906ac19be1 | ||
|
|
8767a43ee8 | ||
|
|
c1e846067e | ||
|
|
9bdc332ffd | ||
|
|
bfa3b6a7d8 | ||
|
|
66d09a4b75 | ||
|
|
3cb9308254 | ||
|
|
b01d663bbe | ||
|
|
5998f82e54 | ||
|
|
df7624fcfc | ||
|
|
8a72da8b30 | ||
|
|
125c0d6108 | ||
|
|
f7f08bba2a | ||
|
|
b49e5dbc81 | ||
|
|
abd5464b80 | ||
|
|
97dc393c9b | ||
|
|
a3f684ff82 | ||
|
|
876aabfcec | ||
|
|
e22abd3a4b | ||
|
|
01e82e282c | ||
|
|
58a4e07bf4 | ||
|
|
7c2ebb7801 | ||
|
|
ab0fdc0e17 | ||
|
|
c2a627d5c1 |
No files matched your search
@@ -82,7 +82,7 @@ func indexingScheduler(intervalMinutes uint32) {
|
||||
// Define a function to recursively index files and directories
|
||||
func (si *Index) indexFiles(path string) error {
|
||||
// Check if the current directory has been modified since the last indexing
|
||||
adjustedPath := si.makeIndexPath(path, false)
|
||||
adjustedPath := si.makeIndexPath(path, true)
|
||||
dir, err := os.Open(path)
|
||||
if err != nil {
|
||||
// Directory must have been deleted, remove it from the index
|
||||
@@ -133,7 +133,7 @@ func (si *Index) InsertFiles(path string) {
|
||||
func (si *Index) InsertDirs(path string) {
|
||||
for _, f := range si.GetQuickList() {
|
||||
if f.IsDir {
|
||||
adjustedPath := si.makeIndexPath(path, false)
|
||||
adjustedPath := si.makeIndexPath(path, true)
|
||||
if _, exists := si.Directories[adjustedPath]; exists {
|
||||
si.UpdateCount("dirs")
|
||||
// Add or update the directory in the map
|
||||
|
||||
@@ -13,7 +13,7 @@ func (si *Index) UpdateFileMetadata(adjustedPath string, info FileInfo) bool {
|
||||
si.mu.Lock()
|
||||
defer si.mu.Unlock()
|
||||
dir, exists := si.Directories[adjustedPath]
|
||||
if !exists {
|
||||
if !exists || exists && dir.Metadata == nil {
|
||||
// Initialize the Metadata map if it is nil
|
||||
if dir.Metadata == nil {
|
||||
dir.Metadata = make(map[string]FileInfo)
|
||||
|
||||
@@ -286,14 +286,14 @@ export default {
|
||||
window.addEventListener("keydown", this.keyEvent);
|
||||
window.addEventListener("scroll", this.scrollEvent);
|
||||
window.addEventListener("resize", this.windowsResize);
|
||||
this.$el.addEventListener("click", this.clickClear);
|
||||
this.$el.addEventListener("contextmenu", this.openContext);
|
||||
|
||||
if (!state.user.perm?.create) return;
|
||||
this.$el.addEventListener("dragover", this.preventDefault);
|
||||
this.$el.addEventListener("dragenter", this.dragEnter);
|
||||
this.$el.addEventListener("dragleave", this.dragLeave);
|
||||
this.$el.addEventListener("drop", this.drop);
|
||||
this.$el.addEventListener("contextmenu", this.openContext);
|
||||
this.$el.addEventListener("click", this.clickClear);
|
||||
},
|
||||
beforeUnmount() {
|
||||
// Remove event listeners before destroying this page.
|
||||
@@ -442,6 +442,9 @@ export default {
|
||||
this.alphanumericKeyPress(key); // Call the alphanumeric key press function
|
||||
return;
|
||||
}
|
||||
if (noModifierKeys && getters.currentPromptName() != null) {
|
||||
return
|
||||
}
|
||||
// Handle the space bar key
|
||||
if (key === " ") {
|
||||
event.preventDefault();
|
||||
|
||||
Reference in new issue
Block a user