mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-10-27 22:42:38 +01:00
Use FileUtil's helper method instead
This commit is contained in:
parent
ab6ed4aeac
commit
d2f6d90e13
@ -9614,8 +9614,7 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
var fi = new FileInfo(fileName);
|
||||
|
||||
// Do not allow directory drop
|
||||
bool isDirectory = (File.GetAttributes(fi.FullName) & FileAttributes.Directory) == FileAttributes.Directory;
|
||||
if (isDirectory)
|
||||
if (FileUtil.IsDirectory(fileName))
|
||||
{
|
||||
MessageBox.Show(_language.ErrorDirectoryDropNotAllowed, fi.Name, MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user