DEV Community

Discussion on: Visual Studio, Why Can't You Just Let Me Have This One (Solution Folder)?

Collapse
 
cookrdan profile image
Dan • Edited

More on the above and maybe a little solution (in bash):

# make a file
[~]$  touch some_folder                                    

# make a folder with the same name (won't work)                                           
[~]$  mkdir some_folder                                    
mkdir: can't create directory 'some_folder': File exists   

# okay so instead make a _tmp folder, move the file(s) in there, then rename the _tmp folder to intended name                                                          
[~]$  mkdir _tmp; mv some* $_; mv $_ some_folder           

# here's the folder                                                           
[~]$  ls                                                   
some_folder                                                

# here's the contents of it                                                           
[~]$  ls some_folder/                                      
some_folder

$_ in bash is the last parameter given to the previous command.