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

M Busche spammymatt94 at yahoo.com
Wed Feb 6 19:13:51 EST 2013


I was still hoping for some help with this.


Is my Ubuntu command line capture incomprehensible?  The trace below shows how a 2-line SConstruct file will remove a simple file, but not a directory.  I don't get it.


Thanks for any insight you can offer into this unexpected behavior.

Matt




________________________________
From: M Busche <spammymatt94 at yahoo.com>
To: "scons-users at scons.org" <scons-users at scons.org>
Sent: Friday, February 1, 2013 10:30 PM
Subject: [Scons-users] Can't get Delete Action to delete a directory.


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

_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://four.pairlist.net/pipermail/scons-users/attachments/20130206/69b802df/attachment-0001.htm>


More information about the Scons-users mailing list