Opened 15 years ago

Closed 15 years ago

#343 closed task (fixed)

Invalid Directory

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: major Milestone: svndigest 0.6.6
Component: core Version: 0.6.5
Keywords: Cc:

Description

related to ticket:342

If the node in --target that should be removed is either a file or lacks read permission, the deletion fails. Later chdir fails with error message Invalid Directory: Foo, and svndigest writes the output in current directory instead.

Change History (5)

comment:1 Changed 15 years ago by Peter Johansson

Version: trunk0.6.5

comment:2 Changed 15 years ago by Peter Johansson

(In [680]) refs #342 and #343. I think this fixes the issue but need to test it (and perhaps add tests) to be sure. I changed rmdirhier to also work on non-dirs. The name, rmdirhier, is perhaps not so descriptive anymore but I prefered changing that function rather than duplicating imilar code elsewhere. I also changed the behavior of rmdirhier in that links are no longer followed but only removed, i.e., a symlink pointing to a dir is only deleted (without deleting the daughter nodes).

comment:3 Changed 15 years ago by Peter Johansson

(In [682]) refs #342 and #343 - commit in right branch

comment:4 Changed 15 years ago by Peter Johansson

Owner: changed from Jari Häkkinen to Peter Johansson
Status: newassigned

comment:5 Changed 15 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

(In [683]) adding code to catch failure from calls to chdir and mkdir et cetera - closes #343

Note: See TracTickets for help on using tickets.