增加空目录支持

Signed-off-by: Zhang Jing <byrdkm17@gmail.com>