View Issue Details

IDProjectCategoryView StatusLast Update
0019094MMW 5Extensions frameworkpublic2022-08-31 00:10
Reporterzvezdan Assigned To 
PriorityhighSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Fixed in Version5.0.4 
Summary0019094: drivetype property of filesystem should return the same numeric values as they are in the Medias table
DescriptionI have several add-ons that relies on that value, but now it shows "drive" and "optical_drive" instead of these numerical values found in Medias table. You know, the same value that was returned by MediaType property of FileSystemObject.
TagsNo tags attached.
Fixed in build2650

Activities

Ludek

2022-05-27 16:31

developer   ~0068298

I suppose you are referring the return value of this : https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getdrivetypea
e.g. DRIVE_FIXED == 3 ?

Added it as new mediaType integer property of the drive and documented.

=> added in 5.0.4.2650

zvezdan

2022-05-27 16:45

updater   ~0068299

Yes, exactly. That was the last thing preventing me to finish the new add-on. It manipulates with Medias table and I need to know the exact type of files.

I just need to ask. Your drive object obtained by getDriveList() already has the driveType property which returns only two values: 'drive' and 'optical_drive'. I hope that the new integer property supports values for all drives, including removable (2) and mapped network drives (4).

peke

2022-08-31 00:10

developer   ~0069109

Verified 2661 Drive type is integer