protected override bool CreateInternal(string path, string name, MIMEType mime_type, Process <Stream> process, out FileSnapshot_ById snapshot) { FileSnapshot_ById parent_file; if (GetStructure().TryGetFile(Filename.GetDirectory(path), out parent_file)) { return(CreateInternalViaParentId(parent_file.GetId(), name, mime_type, process, out snapshot)); } snapshot = null; return(false); }
static public bool DoesFileExist(this AssetManager item, string path) { string directory = Filename.GetDirectory(path); string filename = Filename.GetFilenameWithExtension(path); if (item.List(directory).Has(filename)) { return(true); } return(false); }
static public string GetAssetDirectory(this UnityEngine.Object item) { return(Filename.GetDirectory(item.GetAssetPath())); }
static public string GetDirectory(this AssetInfo item) { return(Filename.GetDirectory(item.GetPath())); }