[Scons-users] Can't get Delete Action to delete a directory.

M Busche spammymatt94 at yahoo.com
Sat Feb 2 00:30:16 EST 2013


Here's my very simple test:


$ ls -a
.  ..  SConstruct
$ cat SConstruct
tgt = ARGUMENTS.get('tgt', '')
t = Command(tgt, [], [Delete("$TARGET")])
$ touch foo
$ ls -a
.  ..  foo  SConstruct
$ scons -Q tgt=foo
Delete("foo")
$ ls -a
.  ..  .sconsign.dblite  SConstruct
$ mkdir bar
$ scons -Q tgt=bar
scons: `.' is up to date.
$ ls -a
.  ..  bar  .sconsign.dblite  SConstruct
$


I must be missing something.  Can someone explain why Delete won't delete directory bar when the man page clearly states that the Delete factory works for both files and directory trees?

Thanks,
Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130201/7f6e64a5/attachment.htm>


More information about the Scons-users mailing list