Transfer padding and directory handling