mirror of
https://github.com/opensim/opensim.git
synced 2026-08-08 18:25:33 +08:00
split the Upload* caps per asset type. We will need that one day. move uploadtaskscript to simpleh
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user