Table of Contents

Class FileSizes

Namespace
FluentFTP.Helpers
Assembly
FluentFTP.dll

Extension methods related to FTP tasks

public static class FileSizes
Inheritance
FileSizes
Inherited Members

Methods

FileSizeToString(int)

Converts a file size in bytes to a string representation (eg. 12345 becomes 12.3 KB)

public static string FileSizeToString(this int bytes)

Parameters

bytes int

Returns

string

FileSizeToString(long)

Converts a file size in bytes to a string representation (eg. 12345 becomes 12.3 KB)

public static string FileSizeToString(this long bytes)

Parameters

bytes long

Returns

string

FileSizeToString(uint)

Converts a file size in bytes to a string representation (eg. 12345 becomes 12.3 KB)

public static string FileSizeToString(this uint bytes)

Parameters

bytes uint

Returns

string

FileSizeToString(ulong)

Converts a file size in bytes to a string representation (eg. 12345 becomes 12.3 KB)

public static string FileSizeToString(this ulong bytes)

Parameters

bytes ulong

Returns

string