Creating a folder that aggregates files from other folders












0















I'm trying to organise my directories for different classes such that each of them has a todo folder.



something like this:



|--classes/
| |--classOne/
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classTwo
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classThree
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md


I'm wondering if it's possible to have a folder called todo_buffer external to this hierarchy that can aggregate data from all of the individual todo folders.



It's possible to just create a small application, but is there a unix-utility that will allow me to do this? I was thinking along the line of symbolic links.










share|improve this question









New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • If you're thinking about symbolic links, what have you tried so far?

    – roaima
    2 hours ago











  • I've only used symlinks in the context of ln -s, where i'm just soft linking two files and truncating their path. I read the ln manpage, but couldn't figure out how I might achieve this, which is why I turned to SE

    – ZM-
    9 mins ago
















0















I'm trying to organise my directories for different classes such that each of them has a todo folder.



something like this:



|--classes/
| |--classOne/
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classTwo
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classThree
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md


I'm wondering if it's possible to have a folder called todo_buffer external to this hierarchy that can aggregate data from all of the individual todo folders.



It's possible to just create a small application, but is there a unix-utility that will allow me to do this? I was thinking along the line of symbolic links.










share|improve this question









New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • If you're thinking about symbolic links, what have you tried so far?

    – roaima
    2 hours ago











  • I've only used symlinks in the context of ln -s, where i'm just soft linking two files and truncating their path. I read the ln manpage, but couldn't figure out how I might achieve this, which is why I turned to SE

    – ZM-
    9 mins ago














0












0








0








I'm trying to organise my directories for different classes such that each of them has a todo folder.



something like this:



|--classes/
| |--classOne/
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classTwo
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classThree
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md


I'm wondering if it's possible to have a folder called todo_buffer external to this hierarchy that can aggregate data from all of the individual todo folders.



It's possible to just create a small application, but is there a unix-utility that will allow me to do this? I was thinking along the line of symbolic links.










share|improve this question









New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I'm trying to organise my directories for different classes such that each of them has a todo folder.



something like this:



|--classes/
| |--classOne/
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classTwo
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md
| |--classThree
| | |--todo/
| | | |--read.pdf
| | |--otherFiles.md


I'm wondering if it's possible to have a folder called todo_buffer external to this hierarchy that can aggregate data from all of the individual todo folders.



It's possible to just create a small application, but is there a unix-utility that will allow me to do this? I was thinking along the line of symbolic links.







scripting symlink utilities






share|improve this question









New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 1 hour ago









Kusalananda

126k16239393




126k16239393






New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 2 hours ago









ZM-ZM-

1




1




New contributor




ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






ZM- is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • If you're thinking about symbolic links, what have you tried so far?

    – roaima
    2 hours ago











  • I've only used symlinks in the context of ln -s, where i'm just soft linking two files and truncating their path. I read the ln manpage, but couldn't figure out how I might achieve this, which is why I turned to SE

    – ZM-
    9 mins ago



















  • If you're thinking about symbolic links, what have you tried so far?

    – roaima
    2 hours ago











  • I've only used symlinks in the context of ln -s, where i'm just soft linking two files and truncating their path. I read the ln manpage, but couldn't figure out how I might achieve this, which is why I turned to SE

    – ZM-
    9 mins ago

















If you're thinking about symbolic links, what have you tried so far?

– roaima
2 hours ago





If you're thinking about symbolic links, what have you tried so far?

– roaima
2 hours ago













I've only used symlinks in the context of ln -s, where i'm just soft linking two files and truncating their path. I read the ln manpage, but couldn't figure out how I might achieve this, which is why I turned to SE

– ZM-
9 mins ago





I've only used symlinks in the context of ln -s, where i'm just soft linking two files and truncating their path. I read the ln manpage, but couldn't figure out how I might achieve this, which is why I turned to SE

– ZM-
9 mins ago










2 Answers
2






active

oldest

votes


















0














stow it will create the symlinks, and maintain them. You have to run it to get it to update. However you could use inotify-wait, to trigger an update.






share|improve this answer
























  • The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

    – Kusalananda
    1 hour ago



















0














Can you clarify your requirements and the context of your problem further?




  1. Would you use the "tool" to aggregate your todo_buffer folder AFTER you populated all the todo folders or BEFORE in order for you to more easily populate these todo folders?


  2. Would each individual todo folders contain similar filenames (as shown in your example) but with actual different content?



Symbolic links might be what you are looking for (yet I feel you would need to write a small script) but it really depends on what you want to exactly achieve.






share|improve this answer








New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

    – ZM-
    10 mins ago











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});






ZM- is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496931%2fcreating-a-folder-that-aggregates-files-from-other-folders%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























2 Answers
2






active

oldest

votes








2 Answers
2






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














stow it will create the symlinks, and maintain them. You have to run it to get it to update. However you could use inotify-wait, to trigger an update.






share|improve this answer
























  • The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

    – Kusalananda
    1 hour ago
















0














stow it will create the symlinks, and maintain them. You have to run it to get it to update. However you could use inotify-wait, to trigger an update.






share|improve this answer
























  • The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

    – Kusalananda
    1 hour ago














0












0








0







stow it will create the symlinks, and maintain them. You have to run it to get it to update. However you could use inotify-wait, to trigger an update.






share|improve this answer













stow it will create the symlinks, and maintain them. You have to run it to get it to update. However you could use inotify-wait, to trigger an update.







share|improve this answer












share|improve this answer



share|improve this answer










answered 2 hours ago









ctrl-alt-delorctrl-alt-delor

11.2k42058




11.2k42058













  • The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

    – Kusalananda
    1 hour ago



















  • The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

    – Kusalananda
    1 hour ago

















The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

– Kusalananda
1 hour ago





The next question would be how to get stow to only stow the files in the todo directories, and how to get inotify-wait to trigger that.

– Kusalananda
1 hour ago













0














Can you clarify your requirements and the context of your problem further?




  1. Would you use the "tool" to aggregate your todo_buffer folder AFTER you populated all the todo folders or BEFORE in order for you to more easily populate these todo folders?


  2. Would each individual todo folders contain similar filenames (as shown in your example) but with actual different content?



Symbolic links might be what you are looking for (yet I feel you would need to write a small script) but it really depends on what you want to exactly achieve.






share|improve this answer








New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

    – ZM-
    10 mins ago
















0














Can you clarify your requirements and the context of your problem further?




  1. Would you use the "tool" to aggregate your todo_buffer folder AFTER you populated all the todo folders or BEFORE in order for you to more easily populate these todo folders?


  2. Would each individual todo folders contain similar filenames (as shown in your example) but with actual different content?



Symbolic links might be what you are looking for (yet I feel you would need to write a small script) but it really depends on what you want to exactly achieve.






share|improve this answer








New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





















  • There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

    – ZM-
    10 mins ago














0












0








0







Can you clarify your requirements and the context of your problem further?




  1. Would you use the "tool" to aggregate your todo_buffer folder AFTER you populated all the todo folders or BEFORE in order for you to more easily populate these todo folders?


  2. Would each individual todo folders contain similar filenames (as shown in your example) but with actual different content?



Symbolic links might be what you are looking for (yet I feel you would need to write a small script) but it really depends on what you want to exactly achieve.






share|improve this answer








New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










Can you clarify your requirements and the context of your problem further?




  1. Would you use the "tool" to aggregate your todo_buffer folder AFTER you populated all the todo folders or BEFORE in order for you to more easily populate these todo folders?


  2. Would each individual todo folders contain similar filenames (as shown in your example) but with actual different content?



Symbolic links might be what you are looking for (yet I feel you would need to write a small script) but it really depends on what you want to exactly achieve.







share|improve this answer








New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this answer



share|improve this answer






New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









answered 1 hour ago









Raffi SemerciyanRaffi Semerciyan

11




11




New contributor




Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






Raffi Semerciyan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.













  • There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

    – ZM-
    10 mins ago



















  • There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

    – ZM-
    10 mins ago

















There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

– ZM-
10 mins ago





There may be similarly named files within the todo folder, but that's unlikely. Any recommendations for how to setup the symlinks? I read the ln manpage, but couldn't figure out how I might achieve this.

– ZM-
10 mins ago










ZM- is a new contributor. Be nice, and check out our Code of Conduct.










draft saved

draft discarded


















ZM- is a new contributor. Be nice, and check out our Code of Conduct.













ZM- is a new contributor. Be nice, and check out our Code of Conduct.












ZM- is a new contributor. Be nice, and check out our Code of Conduct.
















Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f496931%2fcreating-a-folder-that-aggregates-files-from-other-folders%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Histoire des bourses de valeurs

Why is there Russian traffic in my log files?

Rename multiple files to decrement number in file name?