我正在接收一些多播数据并试图记录它。它能够正常工作。但今天,我对代码进行了一些更改,并添加了一个函数来创建目录,如果它不存在。
此调用开始影响接收的字节序列。我是这么认为的,因为只要我注释掉这个部分,这个过程就可以了。
真的有可能吗?
StringBuffer dirPath = new StringBuffer();
dirPath.append(FileBaseDir);
dirPath.append(FilePathSeparator);
dirPath.append(date);
File file = new File(dirPath);
if (!file.exists()) {
file.mkdir();
}
`