split the Upload* caps per asset type. We will need that one day. move uploadtaskscript to simpleh

This commit is contained in:
UbitUmarov
2020-04-29 09:58:17 +01:00
parent 7a8a7c7168
commit 3a21d4de1e
3 changed files with 310 additions and 264 deletions

View File

@@ -3693,7 +3693,20 @@ namespace OpenSim.Framework
return result;
}
}
public static void SaveAssetToFile(string filename, byte[] data)
{
string assetPath = "UserAssets";
if (!Directory.Exists(assetPath))
{
Directory.CreateDirectory(assetPath);
}
FileStream fs = File.Create(Path.Combine(assetPath, filename));
BinaryWriter bw = new BinaryWriter(fs);
bw.Write(data);
bw.Close();
fs.Close();
}
}
/* don't like this code
public class DoubleQueue<T> where T:class
@@ -3858,5 +3871,6 @@ namespace OpenSim.Framework
rng.GetBytes(buff);
}
}
}