abraunegg / abraunegg/onedrive

Feature Request: On-Demand Files

Ouverte
#757 29 commentaires 8 réactions 1 personne assignée Réclamée par @abraunegg Voir sur GitHub
Feature Request In Progress Workaround Available
Langage dominant
D
Étoiles
12.8k
Forks
912
Merge moyen
1 j 8 h
PR mergées (30 j)
25

Description

Currently on-demand file downloading is not implemented. #105 was opened and closed due to inactivity. While I'd love to contribute this and make a PR instead of a feature request, this is a bit too daunting of a task for me. When "download files on-demand" is checked in the client on Windows, the file behavior is as follows.

- All files and folders in OneDrive _**exist**_ in the local OneDrive folder but are empty. There is some sort of hook (described later) that downloads the file before it is opened or otherwise used by any program
- If a file is to be opened or otherwise used (such as copying or moving) by any program and it is not yet downloaded, it will be downloaded before it is used. It will be downloaded in-place (meaning it is not stored in a temporary location, to my knowledge). After it has been downloaded like this, the file stays downloaded and can be viewed/modified as many times as you like up until "Free up space" is clicked
- Files and folders in the OneDrive folder can be right clicked and and one of the right click options is "Always keep on this device". What this does is keep those files/folders stored locally instead of waiting for them to be used as described in the first bullet point
- (This one could be a stretch goal for a later addition) When right clicking on a folder in OneDrive, there is an option listed to "Free up space". What this does is removes any files that were downloaded (**with the exception of files/folders which have "Always keep on this device" checked off**)

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look at the existing file synchronization logic in the codebase, particularly around how files are currently downloaded. The issue describes Windows OneDrive's on-demand behavior; need to understand the current client's architecture to add similar hooks. Check for any prior work or comments in the linked PR #921 and issue #105. 'Done' means files exist locally as placeholders and download only when accessed, with right-click options to keep or free space.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Domaine
cli, desktop
Type d'issue
Fonctionnalité
Difficulté
4/5
Temps estimé
3-5 jours
Activité
Active
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.