IO Paths
Utility structures to help working with file paths in Unity
com.andrewraphaellukasik.iopaths Install via UPM
Add to Unity Package Manager using this URL
https://www.pkglnk.dev/track/iopaths.git#upm README
using IOPaths;
AbsoluteFilePath persistentDataCache =
( (AbsoluteDirectoryPath) Application.persistentDataPath )
.Combine( (DirectoryName) "Cache" )
.Combine( (DirectoryName) "001" )
.Combine( (FileName) "cached.bytes" );
if( persistentDataCache.Exists() )
{
byte[] oldBytes = persistentDataCache.ReadAllBytes();
Debug.Log($"old cache was {oldBytes.Length} bytes long");
persistentDataCache.Delete();
}
persistentDataCache.WriteAllBytes(
new byte[]{0,1,2,4,8,16,32,64,128,255}
);
| type | description |
|---|---|
FileName |
file name |
DirectoryName |
directory name |
AbsoluteFilePath |
absolute file path |
AbsoluteDirectoryPath |
absolute directory path |
ResourceFilePath |
/Assets/Resources-relative file path |
ResourceDirectoryPath |
/Assets/Resources-relative directory path |
AssetsFilePath |
/Assets-relative file path |
"com.andrewraphaellukasik.iopaths": "https://github.com/andrew-raphael-lukasik/IOPaths.git#upm"
Total Installs
0
Last 30 daysUnique IPs
0
Approximate usersInstalls Over Time
Operating Systems
No data yet
Top Countries
No data yet
Git Versions
No data yet
Embed Install Badge
Add an install count badge to your README
Markdown
[](https://www.pkglnk.dev/pkg/iopaths)HTML
<a href="https://www.pkglnk.dev/pkg/iopaths"><img src="https://www.pkglnk.dev/badge/iopaths.svg?style=pkglnk" alt="pkglnk installs"></a>
No comments yet. Be the first!