question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't create file or directory in Cosmos FileSystem.

See original GitHub issue

Hey 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:closed
  • Created 7 years ago
  • Comments:22 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
charlesbetroscommented, Nov 3, 2016

Fixed by 1c8901850cd33577b5a69b04d6c990e948134018

0reactions
jp2masacommented, Oct 30, 2016

File.WriteAllText You can join Cosmos gitter or talk with me on gitter too. https://gitter.im/CosmosOS/Cosmos

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found