You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-i...@googlegroups.com
Just a quick question. Is it expected behavior when deleteRecursively returns 1 file deleted on non-existent Path?
scala> val imaginary = Path.fromString("/tmp/foo/bar")
imaginary: scalax.file.Path = Path(/tmp/foo/bar)
scala> imaginary.exists
res0: Boolean = false
scala> val (deleted, remaining) = imaginary.deleteRecursively()
deleted: Int = 1
remaining: Int = 0
Jesse Eichar
unread,
Apr 3, 2012, 4:00:03 AM4/3/12
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to scala-i...@googlegroups.com
That does indeed seem like a bug. It should return 0 and 0. I don't think I check for the case where imaginary does not exist. I will create a ticket for this.