diractory struct change and delete