问题
在 System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) 在 System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) 在 System.IO.FileStream…ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy) 在 System.IO.FileStream…ctor(String path, FileMode mode) 在
问题分析
一般先看是不是路径问题,我这里遇到的是路径问题
原先我的代码是:
path = $"{
dstFilePath}/{
DateTime.Now.ToString("yyyyMMdd")}";
if (!Directory