Skip to content

Instantly share code, notes, and snippets.

View QXSoftware's full-sized avatar

Hunter QXSoftware

View GitHub Profile
@QXSoftware
QXSoftware / it-ebooks.md
Created April 2, 2020 02:22 — forked from baiwfg2/it-ebooks.md
Download ebooks as you want
@QXSoftware
QXSoftware / Toolkit
Created November 9, 2016 07:43 — forked from gering/Toolkit
persitent data path handling in Unity with fallback
private static string[] _persistentDataPaths;
public static bool IsDirectoryWritable(string path) {
try {
if (!Directory.Exists(path)) return false;
string file = Path.Combine(path, Path.GetRandomFileName());
using (FileStream fs = File.Create(file, 1)) {}
File.Delete(file);
return true;
} catch {