Platforms to show: All Mac Windows Linux Cross-Platform
FolderItem class
- 16 properties
- property AccessDateMBS(UTC as boolean = false) as date
- property AccessDateTimeMBS(UTC as boolean = false) as DateTime
- property AddedToDirectoryDateMBS as date
- property AddedToDirectoryDateTimeMBS as DateTime
- property AttributeModificationDateMBS(UTC as boolean = false) as date
- property AttributeModificationDateTimeMBS(UTC as boolean = false) as DateTime
- property BackupDateMBS(UTC as boolean = false) as date
- property BackupDateTimeMBS(UTC as boolean = false) as DateTime
- property BackupItemExcludedMBS as boolean
- property CommentMBS as string
- property CreationDateMBS(UTC as boolean = false) as date
- property CreationDateTimeMBS(UTC as boolean = false) as DateTime
- property FinderLabelMBS as Integer
- property MacQuarantinePropertiesMBS as MacQuarantinePropertiesMBS
- property ModificationDateMBS(UTC as boolean = false) as date
- property ModificationDateTimeMBS(UTC as boolean = false) as DateTime
- 137 methods
- method AbsolutePath as string
- method AbsolutePathMBS as string
- method BackupIsItemExcludedMBS(byref excludeByPath as boolean) as boolean
- method BackupSetItemExcludedMBS(exclude as boolean, excludeByPath as boolean) as Integer
- method CalculateDirectorySizeMBS(recursive as boolean = false, ticks as Integer = 0, QueryCompressedSizes as boolean = false, RecursionLimit as Integer = -1) as DirectorySizeMBS
- method CompressedFileLengthMBS as int64
- method CreateLargeBinaryStreamMBS(MacType as string, MacCreator as string) as LargeBinaryStreamMBS
- method CreateResStreamMBS(MacType as string, MacCreator as string) as ResStreamMBS
- method CreatorAppMBS as FolderItem
- method CreatorAppMBS(creatorCode as String) as FolderItem
- method DarwinMediaClassMBS as string
- method DarwinMediaInfoMBS as CFDictionaryMBS
- method DarwinVolumeNameMBS as string
- method DeleteDataForkMBS
- method DeleteResourceForkMBS
- method DisplayPathMBS(delimiter as string = "/") as string
- method EjectVolumeMBS(force as boolean, byref dissenterPID as Integer) as Integer
- method FilesMBS as FolderItem()
- method FlushVolumeMBS as Integer
- method FoldersMBS as FolderItem()
- method FontActivateMBS(OnlyLocal as boolean) as Integer
- method FontDeactivateMBS(OnlyLocal as boolean) as Integer
- method GetFileFlagsMBS as Integer
- method GetFolderFlagsMBS as Integer
- method GetVolumeRefMBS as Integer
- method HasUnresolvedConflictsMBS as boolean
- method IconImageMBS(width as Integer, WindowsFlags as Integer=0) as picture
- method IconMaskMBS(width as Integer, WindowsFlags as Integer=0) as picture
- method IconMBS(width as Integer, WindowsFlags as Integer=0) as picture
- method isApplicationMBS as boolean
- method isBundleMBS as boolean
- method IsCompressedFileMBS as Boolean
- method IsDownloadedMBS as boolean
- method IsDownloadingMBS as boolean
- method IsEjectableVolumeMBS as Boolean
- method IsEncryptedFileMBS as Boolean
- method IsFileDataForkOpenReadWriteMBS as boolean
- method IsFileResourceForkOpenReadWriteMBS as boolean
- method IsOnRemoteVolumeMBS as Boolean
- method IsUbiquitousItemMBS as boolean
- method IsUploadedMBS as boolean
- method IsUploadingMBS as boolean
- method ItemsMBS as FolderItem()
- method KindMBS as string
- method LaunchMBS(inFront as Boolean) as Boolean
- method LaunchServicesApplicationForItemMBS(role as Integer) as folderitem
- method LaunchServicesApplicationsForItemMBS(role as Integer) as LaunchServicesApplicationListMBS
- method LaunchServicesCanApplicationAcceptItemMBS(TargetApp as folderitem, role as Integer, flags as Integer) as boolean
- method LaunchServicesDisplayNameMBS as string
- method LaunchServicesItemInfoMBS(WhichInfo as Integer) as LaunchServicesItemInfoMBS
- method LaunchServicesKindStringMBS as string
- method LaunchServicesOpenMBS as folderitem
- method LaunchServicesRegisterMBS(update as boolean) as Integer
- method LogicalFileDataLengthMBS as int64
- method LogicalFileResLengthMBS as int64
- method LogicalFileTotalLengthMBS as int64
- method LongPathMBS as string
- method MacCopyObjectMBS(DestinationFolder as folderitem, DestinationName as string, byref Result as folderitem, Options as Integer) as Integer
- method MacIsHardLinkedMBS as boolean
- method MacMoveObjectMBS(DestinationFolder as folderitem, DestinationName as string, byref Result as folderitem, Options as Integer) as Integer
- method MacMoveObjectToTrashMBS(byref Result as folderitem, Options as Integer) as Integer
- method MacNodeIDMBS as UInt64
- method MacParentDirectoryIDMBS as UInt64
- method MacResolveNodeIDMBS(NodeID as UInt64) as folderitem
- method NameExtensionMBS as string
- method NameWithoutExtensionMBS as string
- method NativePath as string
- method NewCGPDFDocumentMBS(MediaBox as CGRectMBS, title as string, author as string, creator as string) as CGPDFContextMBS
- method NewCGPDFDocumentMBS(MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean) as CGPDFContextMBS
- method NewCGPDFDocumentMBS(MediaBox as CGRectMBS, title as string, author as string, creator as string, subject as string, keywords as string, OwnerPassword as string, UserPassword as string, AllowsPrinting as boolean, AllowsCopy as boolean, KeyLength as Integer) as CGPDFContextMBS
- method NewCGPDFDocumentWithInfoMBS(MediaBox as CGRectMBS, info as object) as CGPDFContextMBS
- method OpenAsCGPDFDocumentMBS as CGPDFDocumentMBS
- method OpenAsGIFMBS as GIFMBS
- method OpenAsJPEGMBS as picture
- method OpenAsJPEGMBS(allowdamaged as Boolean) as picture
- method OpenAsJPEGMBS(allowdamaged as Boolean,fileposition as Integer) as picture
- method OpenAsLargeBinaryStreamMBS(write as Boolean) as LargeBinaryStreamMBS
- method OpenAsPNGMBS(gamma as single = 0.0, AllowDamaged as Boolean = false) as PNGPictureMBS
- method OpenAsResStreamMBS(write as Boolean) as ResStreamMBS
- method OpenAsTiffMBS(HeaderOnly as boolean=false) as TiffPictureMBS
- method OpenWithAppMBS(TheApplication as FolderItem, inFront as Boolean) as Boolean
- method ParentVolumeMBS as folderitem
- method PercentDownloadedMBS as Double
- method PercentUploadedMBS as Double
- method PermissionsMBS(OldWay as boolean) as PermissionsMBS
- method PhysicalFileDataLengthMBS as int64
- method PhysicalFileResLengthMBS as int64
- method PhysicalFileTotalLengthMBS as int64
- method QuickLookMBS(MaxWidth as Integer = 500, MaxHeight as Integer = 500, IconMode as Boolean = false, ScaleFactor as Double = 1.0) as picture
- method QuickLookMTMBS(MaxWidth as Integer = 500, MaxHeight as Integer = 500, IconMode as Boolean = false, ScaleFactor as Double = 1.0) as picture
- method ReadFileMBS(byref data as MemoryBlock, offset As Integer = 0, byteCount As Integer = -1) as boolean
- method ReadFileMBS(byref data as string, offset As Integer = 0, byteCount As Integer = -1) as boolean
- method SaveAs8BitAlphaPNGMBS(pic as picture, colors() as color, alphas() as Integer, gamma as single = 0.0) as boolean
- method SaveAs8BitAlphaPNGMBS(pic as picture, colors() as color, alphas() as Integer, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- method SaveAs8BitPNGMBS(pic as picture, colors() as color, gamma as single = 0.0) as boolean
- method SaveAs8BitPNGMBS(pic as picture, colors() as color, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- method SaveAsGIFMBS(data as GIFMBS) as boolean
- method SaveAsJPEGMBS(pic as picture, quality as Integer = 80) as boolean
- method SaveAsPNGMBS(pic as picture, gamma as single = 0.0) as boolean
- method SaveAsPNGMBS(pic as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- method SaveAsPNGMBS(pic as picture, mask as picture, gamma as single = 0.0) as boolean
- method SaveAsPNGMBS(pic as picture, mask as picture, gamma as single, Interlace as Boolean, FilterType as Integer) as boolean
- method SetDesktopPictureMBS as Integer
- method SetFileFlagsMBS(flags as Integer) as Integer
- method SetFolderFlagsMBS(flags as Integer) as Integer
- method SetTagNamesMBS(tags() as string) as Integer
- method SetTagNamesMBS(tags() as string, byref e as CFErrorMBS) as Integer
- method ShortPathMBS as string
- method SortedFilesMBS(followAlias as Boolean = false, SortByDisplayName as boolean = false, VisibleOnly as boolean = false) as FolderItem()
- method SortedFoldersMBS(followAlias as Boolean = false, SortByDisplayName as boolean = false, VisibleOnly as boolean = false) as FolderItem()
- method SortedItemsMBS(followAlias as Boolean = false, SortByDisplayName as boolean = false, VisibleOnly as boolean = false) as FolderItem()
- method SpotLightFileInfoMBS(uti as string = "") as dictionary
- method SpotLightLoadMDImporterMBS as boolean
- method SpotLightTextContentMBS(uti as string = "") as string
- method TagNamesMBS as string()
- method TagNamesMBS(byref e as CFErrorMBS) as string()
- method TrueFilesMBS as FolderItem()
- method TrueFoldersMBS as FolderItem()
- method TrueItemsMBS as FolderItem()
- method UnixpathMBS as string
- method UnMountVolumeMBS(force as boolean = false) as Integer
- method UnMountVolumeMBS(force as boolean, byref dissenterPID as Integer) as Integer
- method VolGetFolderItemIDMBS(createFileIDs as Boolean = true) as Integer
- method VolSupportsCatSearchMBS as Boolean
- method VolumeFreeSizeMBS as Int64
- method VolumeInformationMBS as VolumeInformationMBS
- method VolumeSizeMBS as Int64
- method VolumeSupportsHugeFilesMBS as Integer
- method VolumeUUIDMBS as string
- method WinThumbnailMBS(preferredSize as Integer = 512) as picture
- method WriteFileMBS(data as MemoryBlock) as boolean
- method WriteFileMBS(data as string) as boolean
This class has no sub classes.
See also in the Xojo Language Reference
Some useful global functions for this class:
- CGNewPDFDocumentMBS(file as folderitem, MediaBox as CGRectMBS, title as string, author as string, creator as string) as CGPDFContextMBS
- CombineBitCMYKtoCMYKMBS(dest as TiffPictureMBS, CyanChannel() as Integer, MagentaChannel() as Integer, YellowChannel() as Integer, BlackChannel() as Integer, Files() as FolderItem, scale as Double, width as Integer, height as Integer, X1 as Integer, Y1 as Integer, X2 as Integer, Y2 as Integer, CacheSizeRead as Integer) as Integer
- HIconFromFileMBS(IconFile as FolderItem, IconID as Integer) as Integer
- LaunchServicesOpenMBS(item as folderitem) as folderitem
- MacMountServerVolumeMBS(URL as string, MountDir as String, User as String, Password as String, byref Disk as FolderItem, flags as Integer) as Integer
- MacUnmountVolumeMBS(volume as folderItem, Force as Boolean, byref dissenter as Integer) as Integer
- NewCIImagewithFileMBS(file as folderitem) as CIImageMBS
- NewVolumeFolderItemMBS(vRefNum as Integer) as FolderItem
- Split1BitFileMBS(f as folderitem, fc as folderitem, fm as folderitem, fy as folderitem, fk as folderitem, width as Integer, height as Integer, CallbackTarget as object, CacheSizeRead as Integer, CacheSizeWrite as Integer, ReadLines as Integer, WriteLines as Integer) as Integer
- UnmountMBS(Volume as FolderItem, force as boolean = false) as Boolean
Some methods using this class:
- AVAudioPlayerMBS.audioPlayerWithFile(File as folderitem, fileTypeHintUtiString as string, byref error as NSErrorMBS) as AVAudioPlayerMBS
- CDDrawAreaMBS.outJPG(file as folderitem, quality as Integer = 80) as boolean
- CFBookmarkMBS.ResolveBookmarkDataToCFURLMBS(bookmark as string, options as UInt32, relativeToURL as folderitem, byref isStale as boolean) as CFURLMBS
- CIContextMBS.writePNGRepresentationOfImage(Image as CIImageMBS, file as FolderItem, format as Integer = 24, colorSpace as CGColorSpaceMBS = nil, options as dictionary = nil, byref error as NSErrorMBS) as Boolean
- ImageMagickQ16MBS.SetCurrentDirectory(path as folderitem) as boolean
- NikonMBS.LoadLibrary(file as folderitem) as boolean
- NSAttributedStringMBS.initWithPath(file as folderitem, byref documentAttributes as dictionary) as boolean
- NSWindowMBS.setTitleWithRepresentedFile(filename as folderitem)
- OpenDialogMBS.Files as FolderItem()
- WindowsFileCopyMBS.FileOperationCopy(source as string, dest as folderitem, Flags as Integer, ProgressTitle as string="") as boolean
Some properties using for this class:
- CatSearchMBS.Result as folderitem
- CTFontDescriptorMBS.File as FolderItem
- DynaPDFColorProfilesMBS.DefInGray as FolderItem
- IKCameraDeviceViewMBS.downloadsFolder as FolderItem
- IKScannerDeviceViewMBS.downloadsFolder as FolderItem
- IKSlideshowMBS.AudioFile as FolderItem
- JPEGImporterMBS.file as folderitem
- JPEGTransformationMBS.OutputFile as FolderItem
- LMFitControlMBS.msgfile as FolderItem
- SDAVAssetExportSessionMBS.outputFile as FolderItem
Some events using this class:
- CarbonApplicationEventsMBS.VolumeMounted(VolumeRefNum as Integer, VolumeRoot as FolderItem)
- DesktopIKScannerDeviceViewControlMBS.DidScanToURL(url as String, file as FolderItem, fileData as MemoryBlock, error as NSErrorMBS)
- IKScannerDeviceViewMBS.DidScanToURL(url as String, file as FolderItem, fileData as MemoryBlock, error as NSErrorMBS)
- ImageCaptureEventsMBS.cameraDeviceViewDidDownloadFile(cameraDeviceView as IKCameraDeviceViewMBS, CameraFile as ICCameraFileMBS, URL as string, File as folderItem, data as MemoryBlock, error as NSErrorMBS)
- ImageCaptureEventsMBS.scannerDeviceDidScanToURL(scanner as ICScannerDeviceMBS, URL as string, file as folderitem, data as MemoryBlock)
- NSSavePanelMBS.isValidFilename(path as string, item as folderitem) as boolean
- NSURLSessionMBS.downloadTaskDidFinishDownloadingToURL(downloadTask as NSURLSessionDownloadTaskMBS, location as String, file as FolderItem)
- QLPreviewControllerMBS.didSaveEditedCopyOfPreviewItem(Item as FolderItem, modifiedContentsFile as FolderItem)
- QLPreviewPanelMBS.previewItemAtIndex(index as Integer) as folderitem
- QLPreviewPanelMBS.transitionImageForPreviewItem(file as folderitem, byref contentRect as NSRectMBS) as NSImageMBS
Release notes
- Version 23.5
- Fixed FolderItem.PhysicalFileTotalLengthMBS function for Windows to report block size.
- Version 23.4
- Added fallback for FontActivateMBS to use AddFontResourceW if AddFontResourceExW fails.
- Fixed crash in XMLDocumentMBS constructor when passing folderitem pointing to a folder.
- Fixed ReadFileMBS function when passing an offset.
- Version 23.1
- Added Offset and Length parameters for FolderItem.ReadFileMBS function.
- Version 22.5
- Changed AddedToDirectoryDateMBS and AddedToDirectoryDateTimeMBS in FolderItem class to be settable.
- Fixed potential issue in VolumeSizeMBS function when NULL value is returned from system.
- Version 22.0
- Fixed a bug where some functions like GetWindowsColorProfileMBS returning a FolderItem cause an InvalidArgumentException when running on newer Xojo versions.
- Version 21.5
- Fixed code to return FolderItem in various functions on iOS.
- Version 21.4
- Added ReadFileMBS for reading file data into MemoryBlock.
- Version 21.0
- Deprecated CompositeIconsMBS and FinderUpdateMBS global functions.
- Version 20.3
- Fixed problem with VolumeFreeSizeMBS and VolumeSizeMBS running sometimes into an endless loop on Windows.
The items on this page are in the following plugins: MBS Images Plugin, MBS MacCF Plugin, MBS MacCG Plugin, MBS MacClassic Plugin, MBS MacCloud Plugin, MBS MacFrameworks Plugin, MBS MacOSX Plugin, MBS Picture Plugin, MBS Util Plugin, MBS Win Plugin.
FolderChangedNotificationMBS - FSEventsMBS