Timeline for Handy / flexible directory tree operations
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jan 28, 2020 at 9:26 | comment | added | Mr.Wizard | I notice this question doesn't have an Accepted answer. I think you based on your comment above. | |
Dec 21, 2015 at 16:35 | history | edited | user9660 | CC BY-SA 3.0 |
added 4 characters in body
|
Jun 1, 2015 at 22:32 | answer | added | alancalvitti | timeline score: 2 | |
Jun 1, 2015 at 22:22 | comment | added | alancalvitti | Related: mathematica.stackexchange.com/questions/69942/… | |
May 16, 2015 at 8:29 | comment | added | Kuba |
@2012rcampion nice, I had something similar, even with #0 :) I don't remember why I left this way. I will accept and respond to answers when I will have more time to test their usage in real word cases (projects)
|
|
May 15, 2015 at 22:23 | history | tweeted | twitter.com/#!/StackMma/status/599339453744807936 | ||
May 15, 2015 at 16:19 | comment | added | 2012rcampion |
If you want a simple GroupBy -based solution, try GroupBy[DeleteCases[#, {}], First -> Rest, #0] &[FileNameSplit /@ FileNames[___, $UserBaseDirectory, 2]] . The only problem is that FileNames gives no indication as to what is a directory... (I'm pretty proud of finally finding a way to use #0 though =P )
|
|
May 15, 2015 at 15:55 | answer | added | C. E.♦ | timeline score: 3 | |
May 15, 2015 at 14:33 | answer | added | 2012rcampion | timeline score: 6 | |
May 15, 2015 at 14:21 | comment | added | Mr.Wizard | I made one more attempt for today. I doubt it is optimal even if it works; mostly I'd like to know if it does work and if the format is good for you. I can attempt to refine it later. | |
May 15, 2015 at 13:51 | comment | added | Kuba |
@Mr.Wizard The point is to have compact form of directory tree for user interface purposes and be able to convert it easily and use to create such directory tree in different directory for example. Or in general for functions like FileDelete , CopyFile etc.
|
|
May 15, 2015 at 13:42 | comment | added | Kuba | @Mr.Wizard Yep, since it is an empty directory. But At the end the exact format does not matter if I can convert between forms easily and detect what is a file. | |
May 15, 2015 at 13:39 | comment | added | Mr.Wizard |
I am not sure I understand the format that you want. You have e.g. "Licensing" -> {} in your output list. I assume this is OK (desired?) for directories but not files, correct?
|
|
May 15, 2015 at 13:29 | comment | added | Kuba | @Mr.Wizard no worries :) | |
May 15, 2015 at 13:28 | comment | added | Mr.Wizard | Kuba, sorry about the broken answer. I will try to fix it but I realize I am a bit tired to think clearly so it may not be today. | |
May 15, 2015 at 12:36 | answer | added | Mr.Wizard | timeline score: 2 | |
May 15, 2015 at 11:58 | history | edited | Kuba | CC BY-SA 3.0 |
added 223 characters in body
|
May 15, 2015 at 10:35 | history | asked | Kuba | CC BY-SA 3.0 |