[tarantool-patches] Re: Re[2]: [PATCH] lua: fix fio.rmtree to work with non empty dirs

  • From: Alexander Turenko <alexander.turenko@xxxxxxxxxxxxx>
  • To: Konstantin Belyavskiy <k.belyavskiy@xxxxxxxxxxxxx>
  • Date: Tue, 24 Jul 2018 12:28:42 +0300

Hi,

LGTM.

WBR, Alexander Turenko.

On Mon, Jul 23, 2018 at 08:27:47PM +0300, Konstantin Belyavskiy wrote:

   Thanks for review, now check directory absence with fio.stat()

     Среда, 18 июля 2018, 6:43 +03:00 от Alexander Turenko
     <alexander.turenko@xxxxxxxxxxxxx>:

   Hi Kostya!
   The patch looks good for me except one tiny comment.
   WBR, Alexander Turenko.
   > index 0850413d9..14e0fb72c 100644
   > --- a/test/app/fio.test.lua
   > +++ b/test/app/fio.test.lua
   > @@ -131,6 +131,13 @@ fio.rmdir(dir2)
   >
   > { fio.unlink(file1), fio.unlink(file2), fio.unlink(file3),
   fio.unlink(file4) }
   > { fio.unlink(file1), fio.unlink(file2), fio.unlink(file3),
   fio.unlink(file4) }
   > +
   > +-- gh-3258 rmtree should remove directories with files
   > +fio.mktree('tmp2/tmp3/tmp4')
   > +fh = fio.open('tmp2/tmp3/tmp4/tmp.txt', {'O_RDWR', 'O_CREAT'})
   > +fh:close()
   > +fio.rmtree('tmp2')
   > +
   I think it would be good to check that the directory really disappears
   (via fio.listdir()).

   Best regards,
   Konstantin Belyavskiy
   k.belyavskiy@xxxxxxxxxxxxx

Other related posts:

  • » [tarantool-patches] Re: Re[2]: [PATCH] lua: fix fio.rmtree to work with non empty dirs - Alexander Turenko