FolderItem methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

Platforms to show: All Mac Windows Linux Cross-Platform

Back to FolderItem class.

FolderItem.GetFileFlagsMBS as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Files MBS MacClassic Plugin ✅ Yes ❌ No ❌ No ✅ Yes All
Get the file flags for a folderitem.
Example
// For example, testing for a file being invible works like this:
dim fdFlags as Integer
dim fileIsInvisible as boolean
dim f as FolderItem // file

fdFlags = f.GetFileFlagsMBS
if fdFlags < 0 then
' ... oops, an error occured
else
fileIsInvisible = BitwiseAnd (fdFlags, &H4000) <> 0
end

Returns the fdFlags of a file. If you pass in a non-existing file or a folder, a negative error code is returned instead.

The fdFlags is a set of bits with the following meaning:

bit 15value &H8000isAlias
bit 14value &H4000isInvisible
bit 13value &H2000hasBundle (has a BNDL resource)
bit 12value &H1000nameLocked
bit 11value &H0800isStationary
bit 10value &H0400hasCustomIcon
bit 8value &H0100hasBeenInited (Finder has seen the file since it has been created)
bit 7value &H0080hasNoINITs (there is no INIT rsrc in the Extension file)
bit 6value &H0040isShared
bits 1-3value &H000Ecolor (as a 3-bit value from 0-7)

Some examples using this method:

Blog Entries

The items on this page are in the following plugins: MBS MacClassic Plugin.


💬 Ask a question or report a problem