|
static void | RegisterAdvancedSettings (const CAdvancedSettings &advancedSettings) |
|
static void | UnregisterAdvancedSettings () |
|
static std::string | GetDirectory (const std::string &strFilePath) |
|
static std::string | GetFileName (const CURL &url) |
|
static std::string | GetFileName (const std::string &strFileNameAndPath) |
|
static std::string | GetFileOrFolderName (const std::string &path) |
|
static std::string | GetExtension (const CURL &url) |
|
static std::string | GetExtension (const std::string &strFileName) |
|
static bool | HasPluginPath (const CFileItem &item) |
| Check if the CFileItem has a plugin path.
|
|
static bool | HasExtension (const std::string &strFileName) |
| Check if there is a file extension.
|
|
static bool | HasExtension (const std::string &strFileName, const std::string &strExtensions) |
| Check if filename have any of the listed extensions.
|
|
static bool | HasExtension (const CURL &url, const std::string &strExtensions) |
|
static void | RemoveExtension (std::string &strFileName) |
|
static std::string | ReplaceExtension (const std::string &strFile, const std::string &strNewExtension) |
|
static void | Split (const std::string &strFileNameAndPath, std::string &strPath, std::string &strFileName) |
|
static std::vector< std::string > | SplitPath (const std::string &strPath) |
|
static void | GetCommonPath (std::string &strParent, const std::string &strPath) |
|
static std::string | GetParentPath (const std::string &strPath) |
|
static bool | GetParentPath (const std::string &strPath, std::string &strParent) |
|
static std::string | GetBasePath (const std::string &strPath) |
| Retrieve the base path, accounting for stacks and files in rars.
|
|
static std::string | ChangeBasePath (const std::string &fromPath, const std::string &fromFile, const std::string &toPath, const bool &bAddPath=true) |
|
static CURL | SubstitutePath (const CURL &url, bool reverse=false) |
|
static std::string | SubstitutePath (const std::string &strPath, bool reverse=false) |
|
static bool | IsProtocol (const std::string &url, const std::string &type) |
| Check whether a URL is a given URL scheme. Comparison is case-insensitive as per RFC1738.
|
|
static bool | PathHasParent (std::string path, std::string parent, bool translate=false) |
| Check whether a path has a given parent. Comparison is case-sensitive. Use IsProtocol() to compare the protocol portion only.
|
|
static bool | PathEquals (std::string path1, std::string path2, bool ignoreTrailingSlash=false, bool ignoreURLOptions=false) |
| Check whether a path equals another path. Comparison is case-sensitive.
|
|
static bool | IsAddonsPath (const std::string &strFile) |
|
static bool | IsSourcesPath (const std::string &strFile) |
|
static bool | IsCDDA (const std::string &strFile) |
|
static bool | IsDAV (const std::string &strFile) |
|
static bool | IsDOSPath (const std::string &path) |
|
static bool | IsDVD (const std::string &strFile) |
|
static bool | IsFTP (const std::string &strFile) |
|
static bool | IsHTTP (const std::string &strFile, bool bTranslate=false) |
|
static bool | IsUDP (const std::string &strFile) |
|
static bool | IsTCP (const std::string &strFile) |
|
static bool | IsHD (const std::string &strFileName) |
|
static bool | IsInArchive (const std::string &strFile) |
|
static bool | IsInRAR (const std::string &strFile) |
|
static bool | IsInternetStream (const std::string &path, bool bStrictCheck=false) |
|
static bool | IsInternetStream (const CURL &url, bool bStrictCheck=false) |
|
static bool | IsStreamedFilesystem (const std::string &strPath) |
|
static bool | IsNetworkFilesystem (const std::string &strPath) |
|
static bool | IsInAPK (const std::string &strFile) |
|
static bool | IsInZIP (const std::string &strFile) |
|
static bool | IsISO9660 (const std::string &strFile) |
|
static bool | IsLiveTV (const std::string &strFile) |
|
static bool | IsPVRRecording (const std::string &strFile) |
|
static bool | IsPVRRecordingFileOrFolder (const std::string &strFile) |
|
static bool | IsPVRTVRecordingFileOrFolder (const std::string &strFile) |
|
static bool | IsPVRRadioRecordingFileOrFolder (const std::string &strFile) |
|
static bool | IsMultiPath (const std::string &strPath) |
|
static bool | IsMusicDb (const std::string &strFile) |
|
static bool | IsNfs (const std::string &strFile) |
|
static bool | IsOnDVD (const std::string &strFile) |
|
static bool | IsOnLAN (const std::string &strFile, LanCheckMode lanCheckMode=LanCheckMode::ONLY_LOCAL_SUBNET) |
|
static bool | IsHostOnLAN (const std::string &hostName, LanCheckMode lanCheckMode=LanCheckMode::ONLY_LOCAL_SUBNET) |
|
static bool | IsPlugin (const std::string &strFile) |
|
static bool | IsScript (const std::string &strFile) |
|
static bool | IsRAR (const std::string &strFile) |
|
static bool | IsRemote (const std::string &strFile) |
|
static bool | IsSmb (const std::string &strFile) |
|
static bool | IsSpecial (const std::string &strFile) |
|
static bool | IsStack (const std::string &strFile) |
|
static bool | IsFavourite (const std::string &strFile) |
|
static bool | IsUPnP (const std::string &strFile) |
|
static bool | IsURL (const std::string &strFile) |
|
static bool | IsVideoDb (const std::string &strFile) |
|
static bool | IsAPK (const std::string &strFile) |
|
static bool | IsZIP (const std::string &strFile) |
|
static bool | IsArchive (const std::string &strFile) |
|
static bool | IsDiscImage (const std::string &file) |
|
static bool | IsDiscImageStack (const std::string &file) |
|
static bool | IsBluray (const std::string &strFile) |
|
static bool | IsAndroidApp (const std::string &strFile) |
|
static bool | IsLibraryFolder (const std::string &strFile) |
|
static bool | IsLibraryContent (const std::string &strFile) |
|
static bool | IsPVR (const std::string &strFile) |
|
static bool | IsPVRChannel (const std::string &strFile) |
|
static bool | IsPVRRadioChannel (const std::string &strFile) |
|
static bool | IsPVRChannelGroup (const std::string &strFile) |
|
static bool | IsPVRGuideItem (const std::string &strFile) |
|
static std::string | AppendSlash (std::string strFolder) |
|
static void | AddSlashAtEnd (std::string &strFolder) |
|
static bool | HasSlashAtEnd (const std::string &strFile, bool checkURL=false) |
|
static void | RemoveSlashAtEnd (std::string &strFolder) |
|
static bool | CompareWithoutSlashAtEnd (const std::string &strPath1, const std::string &strPath2) |
|
static std::string | FixSlashesAndDups (const std::string &path, const char slashCharacter='/', const size_t startFrom=0) |
|
static std::string | CanonicalizePath (const std::string &path, const char slashCharacter='\\') |
|
static CURL | CreateArchivePath (const std::string &type, const CURL &archiveUrl, const std::string &pathInArchive="", const std::string &password="") |
|
static std::string | AddFileToFolder (const std::string &strFolder, const std::string &strFile) |
|
template<typename... T> |
static std::string | AddFileToFolder (const std::string &strFolder, const std::string &strFile, T... args) |
|
static bool | HasParentInHostname (const CURL &url) |
|
static bool | HasEncodedHostname (const CURL &url) |
|
static bool | HasEncodedFilename (const CURL &url) |
|
static std::string | GetRealPath (const std::string &path) |
| Cleans up the given path by resolving "." and ".." and returns it.
|
|
static bool | UpdateUrlEncoding (std::string &strFilename) |
| Updates the URL encoded hostname of the given path.
|
|