Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2018-07

FileUtils.DeleteDirectory help

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

AlexeyT

Pls add a comment to FileUtil.DeleteDirectoty() about 2nd parameter OnlyChildren.
my guesses were:
- delete only subitems of dir, of one level, but don't delete dir
- delete only subitems, of ALL levels, but leave source dir
- delete ALSO subitems of ALL levels

I still cannot guess it.

Regards, Alexey

Reply by email

Unknown author
to AlexeyT
AlexeyT wrote 7 lines
Pls add a comment to FileUtil.DeleteDirectoty() about 2nd parameter OnlyChildren. my guesses were: - delete only subitems of dir, of one level, but don't delete dir - delete only subitems, of ALL levels, but leave source dir - delete ALSO subitems of ALL levels I still cannot guess it.

even after testing on a disposable tree with structure

/foo1/
/foo1/bar1.txt
/foo1/foo2/
/foo1/foo2/bar2.txt
/foo1/foo2/foo3/
/foo1/foo2/foo3/bar3.txt

??

NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list unless* *a signed and pre-paid contract is in effect with us.*

Reply by email