フォーラム


ゲスト  

ようこそ ゲスト さん。このフォーラムに投稿するには 登録が必要です。

ページ: [1]
トピック: [QC#107686] function DirectoryExists does not work - checking ERROR_BAD_NET_NAME is missing.
DEKO
管理者
投稿数: 2690
[QC#107686] function DirectoryExists does not work - checking ERROR_BAD_NET_NAME is missing.
on: 2013/04/08 20:12 Mon

DirectoryExists() を UNC パスに対して行っても常に True を返します。

Report No: 107686            Status: Resolved
function DirectoryExists does not work - checking ERROR_BAD_NET_NAME is missing.
http://qc.embarcadero.com/wc/qcmain.aspx?d=107686
QCWIN:Defect_No=107686

 

  • ERROR_ACCESS_DENIED
  • ERROR_BAD_NETPATH
  • ERROR_BAD_NET_NAME
  • ERROR_FILE_NOT_FOUND
  • ERROR_INVALID_NAME
  • ERROR_PATH_NOT_FOUND

これら (すべて) のチェックが行われないためです。

Report No: 92183            Status: Closed
DirectoryExists return value Error when using invalid NET PATH
http://qc.embarcadero.com/wc/qcmain.aspx?d=92183
QCWIN:Defect_No=92183

 
回避方法は QC#92183 のコメント欄に書いてあります。

See Also:
[Delphi XE: DirectoryExists bug]
https://forums.embarcadero.com/thread.jspa?threadID=56800

[DirectoryExists always returns true on network paths? ]
https://forums.embarcadero.com/thread.jspa?threadID=76895

ページ: [1]
WP Forum Server by ForumPress | LucidCrew
バージョン: 1.7.5 ; ページロード: 0.024 sec.