public static WriteAllBytes ( string path, byte data ) : void | ||
path | string | |
data | byte | |
return | void |
public static void WriteAllBytes(string path, byte[] data)
{
if (data == null)
return;
FileUtilities.Write(path, data, data.Length);
}
public static bool MoveToLocal(string cloudPath, string localPath) { if (SocialAPI.Cloud == null) { return(false); } FileUtilities.WriteAllBytes(localPath, FileUtilities.ReadAllBytes(cloudPath, true), false); FileUtilities.Delete(cloudPath, true); return(true); }