mirror of
https://github.com/reactos/reactos.git
synced 2025-06-13 01:58:32 +00:00
Check for presence of directory
svn path=/trunk/; revision=19527
This commit is contained in:
parent
51c3c77902
commit
e0c1c5a1df
2 changed files with 16 additions and 2 deletions
|
@ -354,7 +354,21 @@ namespace ReactOS.CustomRevisionAction
|
|||
|
||||
return msg;
|
||||
}
|
||||
|
||||
|
||||
public bool DirectoryExists(string directory)
|
||||
{
|
||||
try
|
||||
{
|
||||
ChangeDir(directory);
|
||||
ChangeDir("..");
|
||||
return true;
|
||||
}
|
||||
catch (FtpException)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Return the size of a file.
|
||||
/// </summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue