KFileSystemType

KFileSystemType Namespace Reference

Enumerations

enum  Type {
  Unknown , Nfs , Smb , Fat ,
  Ramfs , Other , Ntfs , Exfat ,
  Fuse
}
 

Functions

KCOREADDONS_EXPORT QString fileSystemName (KFileSystemType::Type type)
 
KCOREADDONS_EXPORT Type fileSystemType (const QString &path)
 

Detailed Description

Provides utility functions for the type of file systems.

Enumeration Type Documentation

◆ Type

Enumerator
Nfs 

NFS or other full-featured networked filesystems (autofs, subfs, cachefs, sshfs)

Smb 

SMB/CIFS mount (networked but with some FAT-like behavior)

Fat 

FAT or similar (msdos, FAT, VFAT)

Ramfs 

RAMDISK mount.

Other 

Ext3, Ext4, ReiserFs, and so on. "Normal" local filesystems.

Ntfs 

NTFS filesystem.

Since
5.85
Exfat 

ExFat filesystem.

Since
5.86
Fuse 

FUSE (Filesystem in USErspace), this is used for a variety of underlying filesystems.

Since
5.100

Definition at line 22 of file kfilesystemtype.h.

Function Documentation

◆ fileSystemName()

QString KFileSystemType::fileSystemName ( KFileSystemType::Type type)

Returns the possibly translated name of a filesystem corresponding to a value from KFileSystemType::Type.

Since
5.86

Definition at line 248 of file kfilesystemtype.cpp.

◆ fileSystemType()

KFileSystemType::Type KFileSystemType::fileSystemType ( const QString & path)

For a given path, returns the filesystem type, one of KFileSystemType::Type values.

If the type can't be determined, KFileSystemType::Unknown is returned.

Since
5.0

Definition at line 237 of file kfilesystemtype.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:04:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.