//
-// Open Service Platform
// Copyright (c) 2012 Samsung Electronics Co., Ltd.
//
// Licensed under the Apache License, Version 2.0 (the License);
String
_FileImpl::GetFileName(const String& filePath)
{
- String fileName;
- SysTryReturn(NID_IO, VerifyFilePathCompatibility(filePath, _AppInfo::IsOspCompat()) == true, fileName, E_INVALID_ARG,
- "[E_INVALID_ARG] The length of the specified filePath (%ls) is zero or exceeds system limitations.",
- filePath.GetPointer());
-
return _FileUtil::GetFileName(filePath);
}
String
_FileImpl::GetFileExtension(const String& filePath)
{
- String extName;
- SysTryReturn(NID_IO, VerifyFilePathCompatibility(filePath, _AppInfo::IsOspCompat()) == true, extName, E_INVALID_ARG,
- "[E_INVALID_ARG] The length of the specified filePath (%ls) is zero or exceeds system limitations.",
- filePath.GetPointer());
-
return _FileUtil::GetFileExtension(filePath);
}