Creating a folder that aggregates files from other folders
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
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.
add a comment |
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
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 ofln -s, where i'm just soft linking two files and truncating their path. I read thelnmanpage, but couldn't figure out how I might achieve this, which is why I turned to SE
– ZM-
9 mins ago
add a comment |
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
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
scripting symlink utilities
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.
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 ofln -s, where i'm just soft linking two files and truncating their path. I read thelnmanpage, but couldn't figure out how I might achieve this, which is why I turned to SE
– ZM-
9 mins ago
add a comment |
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 ofln -s, where i'm just soft linking two files and truncating their path. I read thelnmanpage, 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
add a comment |
2 Answers
2
active
oldest
votes
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.
The next question would be how to getstowto only stow the files in thetododirectories, and how to getinotify-waitto trigger that.
– Kusalananda
1 hour ago
add a comment |
Can you clarify your requirements and the context of your problem further?
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?
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.
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 thetodofolder, but that's unlikely. Any recommendations for how to setup the symlinks? I read thelnmanpage, but couldn't figure out how I might achieve this.
– ZM-
10 mins ago
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
The next question would be how to getstowto only stow the files in thetododirectories, and how to getinotify-waitto trigger that.
– Kusalananda
1 hour ago
add a comment |
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.
The next question would be how to getstowto only stow the files in thetododirectories, and how to getinotify-waitto trigger that.
– Kusalananda
1 hour ago
add a comment |
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.
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.
answered 2 hours ago
ctrl-alt-delorctrl-alt-delor
11.2k42058
11.2k42058
The next question would be how to getstowto only stow the files in thetododirectories, and how to getinotify-waitto trigger that.
– Kusalananda
1 hour ago
add a comment |
The next question would be how to getstowto only stow the files in thetododirectories, and how to getinotify-waitto 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
add a comment |
Can you clarify your requirements and the context of your problem further?
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?
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.
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 thetodofolder, but that's unlikely. Any recommendations for how to setup the symlinks? I read thelnmanpage, but couldn't figure out how I might achieve this.
– ZM-
10 mins ago
add a comment |
Can you clarify your requirements and the context of your problem further?
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?
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.
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 thetodofolder, but that's unlikely. Any recommendations for how to setup the symlinks? I read thelnmanpage, but couldn't figure out how I might achieve this.
– ZM-
10 mins ago
add a comment |
Can you clarify your requirements and the context of your problem further?
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?
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.
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?
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?
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.
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.
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 thetodofolder, but that's unlikely. Any recommendations for how to setup the symlinks? I read thelnmanpage, but couldn't figure out how I might achieve this.
– ZM-
10 mins ago
add a comment |
There may be similarly named files within thetodofolder, but that's unlikely. Any recommendations for how to setup the symlinks? I read thelnmanpage, 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
add a comment |
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.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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 thelnmanpage, but couldn't figure out how I might achieve this, which is why I turned to SE– ZM-
9 mins ago