mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
ADD: add check whether MountPoint exists
This commit is contained in:
parent
d0d70e5fa8
commit
ff8c8e908c
1 changed files with 4 additions and 3 deletions
|
|
@ -8,7 +8,7 @@ uses
|
|||
Classes, SysUtils,
|
||||
uFileSourceListOperation,
|
||||
uFileSource, uMountedFileSource, uFileSystemListOperation,
|
||||
uDCUtils, DCStrUtils;
|
||||
uDCUtils, DCOSUtils, DCStrUtils;
|
||||
|
||||
type
|
||||
|
||||
|
|
@ -64,7 +64,6 @@ var
|
|||
var
|
||||
mountPoint: TMountPoint;
|
||||
mountPointParentPath: String;
|
||||
mountPointName: String;
|
||||
mountedPath: String;
|
||||
mountedTFile: TFile;
|
||||
begin
|
||||
|
|
@ -74,8 +73,10 @@ var
|
|||
if logicPath <> mountPointParentPath then
|
||||
continue;
|
||||
|
||||
if NOT mbDirectoryExists(mountedPath) then
|
||||
continue;
|
||||
|
||||
mountedTFile:= mountedFS.CreateFileFromFile( mountedPath );
|
||||
mountPointName:= mountedFS.getDefaultPointForPath( mountedPath );
|
||||
FFiles.Add( mountedTFile );
|
||||
end;
|
||||
end;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue