Giter VIP home page Giter VIP logo

simple-fs's Introduction

Simple-FS

A virtual implementation of some of the function of a file System Coded as the final assignment of the API (Principles of Algorithm Design). SimpleFS is a virtual hierarchic filesystem that simulate some of the basic functions of a real file system.

Purpose:

It is able to keep track of files and folders and support various functions. It work by reading a command-journal from stdin and return on the stdout the outcome of the operations.

It operate under asymptotic time and memory complexity limits imposed by the challenge.

The project in implemented in C99 with only the standard library (libc) and the base runtime.

You can find the full assignment text in Italian Here

More Info:

  • Input has to be as INSTRUCTION /PATH ( create /p/o )
  • Chose "avvio()" if you want to send input from kayboard
  • Chose "avvio_file()" if you wanto to send input from file. Remember to change the path in fp

Instructions:

  • create -> create a file
  • create_dir -> create a directory
  • delete -> delete a file or a directory without any son
  • delete_r -> delete a file or a directory and all his/her sons
  • find -> find files and directories and order them by name
  • read -> read the content of a file
  • write -> write into a file
  • stampa, ls & printf -> print the FS's tree
  • exit -> end the program

simple-fs's People

Contributors

davidepietrasanta avatar

Watchers

 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.