Giter Club home page Giter Club logo

saldovfs's Introduction

SaldoVFS

Virtual File System

I've tried to mostly show some concepts like DI, Exception Handling, Mocking in Unit Tests

so there could be some displayed exception, which actually in production should be fixed:) or not shown

There still some thing to improve, or refactor, like VirtualDir has some public vars, but i ve tried to somehow delegate responsibilities for different services

like Backup, Display, AttachmentStorage + add configuration ability

Simplified virtual file system

Commands Available: /addFolder [name] - Add Folder To Current /removeFolder [name] - Remove Folder From Current /current - Get Current Folder /commands - Get commands Menu /cd [name] - switch to folder (..) go back /addFile [name] [realFilePath] /listFiles - List Files in Current Folder /tree - List Files in Current Folder /backup - Backup

Basically list of commands available

initial folder is aka root, you can add ass many files or folder inside, you can step into folder or back to the parent with /cd .. command

some commands are still not super properly validate so for example /addFolder test test could give not handled Exception, but if it's necessary i can fix this

Tree is serialized into file, which name is in config, so when you open program it's deserialized back, even keeping Current reference.

Real Files are stored in program Directory which is also in config file

by generating Guid and adding them to the Virtual tree

{ "databaseFile": "temp.dat", "directory": "files", "FtpAddress": "ftp://ftp.dlptest.com/", "FtpUser": "[email protected]", "FtpPassword": "SzMf7rTE4pCrf9dV286GuNe4N" }

Ftp is config for backup, not sure maybe it could be password is changing each day, but's it's openable in browser

example

EnterCommand

/tree Displaying Virtual Tree

----- File a.ts3ad55f59-3b97-4cba-9c58-8987eeb7e5a3 ----- Directory test ----- Directory boom

EnterCommand

/cd test Switching Folder:

EnterCommand

/addFolder test2 Adding VirtualFolder. Vritual Folder Added

EnterCommand

/cd test2 Switching Folder:

EnterCommand

/addFolder uuuu Adding VirtualFolder. Vritual Folder Added

EnterCommand

/tree Displaying Virtual Tree

----- File a.ts3ad55f59-3b97-4cba-9c58-8987eeb7e5a3 ----- Directory test ---------- Directory test2 --------------- Directory uuuu ----- Directory boom

saldovfs's People

Watchers

James Cloos avatar Vadim avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.