Use / or */ to exclude given folders - Makre sure "." path is never indexed - When 0-byte file, use mkdir instead of upload.