KFileSystemType

KFileSystemType Namespace Reference

Enumerations

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

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

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 
Since
5.85 NTFS filesystem.
Exfat 
Since
5.86 ExFat filesystem.

Definition at line 22 of file kfilesystemtype.h.

Function Documentation

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 182 of file kfilesystemtype.cpp.

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 171 of file kfilesystemtype.cpp.

This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Dec 6 2021 22:53:58 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.