You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE REQUEST] Folder with "Local only" remove option #3936
I want to ask a question as well (hoping it's not assigned to anyone) -->
First of all I believe by local-only option you mean the option we get when we're removing the folder right? I'm taking this assumption. So this is how we want the logic to behave.
If a folder has >=1 local file then the local-only option should show.
upon clicking local-only option the only local files should be removed and non-local will still be kept.
If folder does not have any local file then it should not show local-only and clicking on it obviously remove the folder along with it's contents.
I'm also wondering about the case when folder inside a folder has some local files. Following above approach would need us to iterate through sub-directories. Before going in not sure how resource intensive the task would be in a case like this if the tree of directories is very deep. But do let me know if we also want to handle this case same way as above or if you have some other approach
Hi @parneet-guraya! Thanks for your engagement 🍻. I'll try to answer your questions:
First of all I believe by local-only option you mean the option we get when we're removing the folder right? I'm taking this assumption. So this is how we want the logic to behave.
If a folder has >=1 local file then the local-only option should show.
upon clicking local-only option the only local files should be removed and non-local will still be kept.
If folder does not have any local file then it should not show local-only and clicking on it obviously remove the folder along with it's contents.
You're totally right 🙂
I'm also wondering about the case when folder inside a folder has some local files. Following above approach would need us to iterate through sub-directories. Before going in not sure how resource intensive the task would be in a case like this if the tree of directories is very deep. But do let me know if we also want to handle this case same way as above or if you have some other approach
Yes, I think we can use the same algorithm to iterate through subdirectories, maybe some kind of recursivity. As we know, recursivity is not the best solution and not the most efficient, but in this case it makes sense. However, I'd say this won't be very resource-demanding since we'll just need to check if files are available locally by checking whether storagePath is null (isAvailableLocally property from OCFile takes care of this)
Activity
[-]Empty folder with remove local option[/-][+]Folder with remove local option[/+]RohanTemgire commentedon Sep 1, 2023
is this task done or has been fixed yet? should I move forward with this ?
jesmrec commentedon Sep 1, 2023
@RohanTemgire go ahead! it's asigned no one.
parneet-guraya commentedon Jan 16, 2024
Hi, @jesmrec I would like to take this.
I want to ask a question as well (hoping it's not assigned to anyone) -->
First of all I believe by
local-onlyoption you mean the option we get when we're removing the folder right? I'm taking this assumption. So this is how we want the logic to behave.>=1local file then the local-only option should show.local-onlyoption the only local files should be removed and non-local will still be kept.local-onlyand clicking on it obviously remove the folder along with it's contents.I'm also wondering about the case when folder inside a folder has some local files. Following above approach would need us to iterate through sub-directories. Before going in not sure how resource intensive the task would be in a case like this if the tree of directories is very deep. But do let me know if we also want to handle this case same way as above or if you have some other approach
JuancaG05 commentedon Jan 17, 2024
Hi @parneet-guraya! Thanks for your engagement 🍻. I'll try to answer your questions:
You're totally right 🙂
Yes, I think we can use the same algorithm to iterate through subdirectories, maybe some kind of recursivity. As we know, recursivity is not the best solution and not the most efficient, but in this case it makes sense. However, I'd say this won't be very resource-demanding since we'll just need to check if files are available locally by checking whether
storagePathis null (isAvailableLocallyproperty fromOCFiletakes care of this)[-]Folder with remove local option[/-][+][FEATURE REQUEST] Folder with "Local only" remove option[/+]