Can't create file or directory in Cosmos FileSystem.
See original GitHub issueHey everyone!
I can’t create a new dirextory or a new file, whether i use System.IO
or Cosmos.System.FileSystem.VFS
. I can read from a file, but i can’t create or write into it.
Is it possible, that that’s a bug or is it releated to my code? I’ve initialized the filesystem with this code:
private static Sys.FileSystem.CosmosVFS FS;
FS = new Sys.FileSystem.CosmosVFS(); Sys.FileSystem.VFS.VFSManager.RegisterVFS(FS); FS.Initialize();
And so I create a folder:
Directory.CreateDirectory("0:\\TestFolder");
Is that right or have I to do something else to make it work? With kind regards, Survari.
(Please do not be too strict with me, I’m from Germany and the english grammar is not my strength)
Issue Analytics
- State:
- Created 7 years ago
- Comments:22 (12 by maintainers)
Top Results From Across the Web
c# - How can I add a filesystem to Cosmos?
I'm a bit of a novice with Cosmos(and c# in general), and I want to know if it is possible to create a...
Read more >Unable to create folder/file on root in spite of free space
I always log in as root and was able to work properly. My experience is as follows: # pwd /root # mkdir xcxcx...
Read more >How to Fix "Read-only file system" error when I run ...
This worked for me: First, run this command with sudo permission: sudo fsck -n -f. Then reboot the machine. The options -f and...
Read more >Interview Questions: Why can't you create a file?
Questions like “I am trying to create a file on Linux, but I can't. ... Running a simple ls -l should tell you...
Read more >Unable to create folder in root of 'Macintosh HD'?
In Catalina the primary volume is read-only. This means it is not immediately possible to create new folders here. In order to get...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Fixed by 1c8901850cd33577b5a69b04d6c990e948134018
File.WriteAllText You can join Cosmos gitter or talk with me on gitter too. https://gitter.im/CosmosOS/Cosmos