Problem finding my folder via terminal

Tamara Berger brgrt2 at gmail.com
Sat Jun 9 22:50:06 EDT 2018


On Sat, Jun 9, 2018 at 5:05 AM Cameron Simpson <cs at cskk.id.au> wrote:
>
> A third possibility is that you made a mymodules somewhere else (such as in
> your top level home directory), and later decided to put it on your Desktop to
> make it easy to find/access.

I did save it in My Documents first and then moved it to my desktop.
But I did not write code. I just dragged and dropped.

>So you might have decided to "mv" your "mymodules"
> folder into the Desktop like this:
>
>   mv mymodules Desktop/mymodules
>
> which is fine. But mv has some interesting behaviour. If "mymodules" didn't
> exist in Desktop, then youre "mymodules" will get moved into the Desktop.
> However, if mv's final argument is an _existing_ directory, mv puts things
> inside it. So if you went:
>
>   mkdir Desktop/mymodules
>   mv mymodules Desktop/mymodules
>
> then mv would put your top level "mymodules" _inside_ the "Desktop/mymodules"
> folder that already exists, producing the structure you currently have.

I didn't do any of this. Could dragging and dropping have created the
duplicate folder?

Thanks,

Tamara



More information about the Python-list mailing list