예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
 static public string GetAssetDirectory(this UnityEngine.Object item)
 {
     return(Filename.GetDirectory(item.GetAssetPath()));
 }
예제 #4
0
 static public string GetDirectory(this AssetInfo item)
 {
     return(Filename.GetDirectory(item.GetPath()));
 }