mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Added the iOS implementation of the FileSystem API.
This commit is contained in:
@@ -346,7 +346,7 @@ export class FileSystemAccess {
|
||||
}
|
||||
}
|
||||
|
||||
public getFileExtension(path: string): string {
|
||||
private getFileExtension(path: string): string {
|
||||
var dotIndex = path.lastIndexOf(".");
|
||||
if (dotIndex && dotIndex >= 0 && dotIndex < path.length) {
|
||||
return path.substring(dotIndex);
|
||||
|
||||
Reference in New Issue
Block a user