Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
最近、私は SharpSSH を使用してリモート ファイルを処理しています。SharpSSH はrmdir、リモート ディレクトリを削除するための API を提供していますが、ディレクトリが空でない場合、「許可が拒否されました」というメッセージで例外をスローすることがわかりました。次に、最後のファイルの前に各ファイルをrmdir再帰的に削除する必要がありますが、これは効率的ではありません。
rmdir
rmdirでは、ばかげた再帰的な削除なしでこれを使用するにはどうすればよいでしょうか?