Table of Contents

Class FileUtils

Namespace
IO.Scanbot.Sdk.Util
Assembly
BarcodeSDK.NET.Droid.dll
[Register("io/scanbot/sdk/util/FileUtils", DoNotGenerateAcw = true)]
public sealed class FileUtils : Object, IJavaObject, IJavaPeerable, IDisposable
Inheritance
FileUtils
Implements
Inherited Members

Fields

A

[Register("a")]
public const string A = "[\\\\|?*<\\\">+\\[\\]/':]"

Field Value

string

C

[Register("c")]
public const int C = 250

Field Value

int

ScanbotSdkFilesDir

[Register("SCANBOT_SDK_FILES_DIR")]
public const string ScanbotSdkFilesDir = "scanbot-sdk"

Field Value

string

Properties

B

[Register("b")]
public static Pattern B { get; }

Property Value

Pattern

Instance

[Register("INSTANCE")]
public static FileUtils Instance { get; }

Property Value

FileUtils

Methods

EnsureDirExists(string)

[Register("ensureDirExists", "(Ljava/lang/String;)Z", "")]
public static bool EnsureDirExists(string directoryPath)

Parameters

directoryPath string

Returns

bool

GetAppFilesDirOrShowError(Context, string)

[Register("getAppFilesDirOrShowError", "(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;", "")]
public static File GetAppFilesDirOrShowError(Context context, string directoryName)

Parameters

context Context
directoryName string

Returns

File

GetExternalCacheDirOrShowError(Context, string)

[Register("getExternalCacheDirOrShowError", "(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;", "")]
public static File GetExternalCacheDirOrShowError(Context context, string directoryName)

Parameters

context Context
directoryName string

Returns

File

GetExternalFilesDirOrShowError(Context, string)

[Register("getExternalFilesDirOrShowError", "(Landroid/content/Context;Ljava/lang/String;)Ljava/io/File;", "")]
public static File GetExternalFilesDirOrShowError(Context context, string directoryName)

Parameters

context Context
directoryName string

Returns

File

GetExternalStorageDirOrShowError(string)

[Register("getExternalStorageDirOrShowError", "(Ljava/lang/String;)Ljava/io/File;", "")]
public static File GetExternalStorageDirOrShowError(string directoryName)

Parameters

directoryName string

Returns

File

GetFilesDirOrShowError(string, string)

[Register("getFilesDirOrShowError", "(Ljava/lang/String;Ljava/lang/String;)Ljava/io/File;", "")]
public static File GetFilesDirOrShowError(string parentDirPath, string directoryName)

Parameters

parentDirPath string
directoryName string

Returns

File

IsFileNameSafe(ICharSequence)

[Register("isFileNameSafe", "(Ljava/lang/CharSequence;)Z", "")]
public static bool IsFileNameSafe(ICharSequence name)

Parameters

name ICharSequence

Returns

bool

IsFileNameSafe(string)

public static bool IsFileNameSafe(string name)

Parameters

name string

Returns

bool