python 2.7.12 on Linux behaving differently than on Windows

Peter Otten __peter__ at web.de
Wed Dec 7 03:50:07 EST 2016


Steven D'Aprano wrote:

> Tell me Bart, what's the difference between these?
> 
> # Linux
> rm *
> 
> and
> 
> # Windows
> del *

Is there an equivalent to

# touch -- -r 

on Windows? Like in

$ tree
.
|-- -r
|-- a
|   `-- b
|       `-- c
|           `-- bar.txt
`-- foo.txt

3 directories, 3 files
$ rm *
$ tree
.
`-- -r

0 directories, 1 file
$ 




More information about the Python-list mailing list