Courses on operating system design - document management system (JAVA)

Foreword

Code has been placed on github, address https://github.com/SunnyBoy-WYH/OS-File

Inadequate

Consider the case of a disk block is not put two files

Features

(1) create a file: create a file name
to create a new file, if the original file exists to be prompted to overwrite.
(2) copies of documents: copy the source file name of the target file name
to copy files to copy the same name, it can also be renamed copy. Here instead of using visualization, i.e. monitor mouse button, provide copy and paste functionality.
(3) Delete File: delete the file name of
free disk space block, and delete records in the file father file.
(4) move files: move source file name of the target file name
here replaced by visualizing the mouse, i.e. a mouse button monitor, providing cut function. Different, actual movement within the disk directory just change the intra- and inter-disk and disk files to move, do not really need to move files. Move files between disk is actually the first copy files to the target disk, then delete the source files.
(5) display file: type the file name
just a display file contents.
(6) editing the file: edit the file name
requirements for this command to complete editing and saving the file, pay attention to read-only files can not be modified.
(7) change file attributes: change the file name of the property
will be read-only file attribute and not read-only, hidden, and between non-hidden conversion.
(8) The letter format disk formatting commands
to reset the contents of the FAT table, delete all the files objects, since formatting is sensitive operation, it is desirable to provide confirmation dialog box to the user.
(9) to create the directory: makdir directory
create a directory, if the directory exists with the same name is established fail.
(10) to change the directory path: chadir directory
change the current directory, so that a series of operations can be performed in the new directory.
(11) delete empty directories: rdir directory
The current directory, the directory is not empty, the root directory can not be deleted.
(12) Delete the directory: deldir directory
can delete empty directories but also to delete non-empty directory.
(13) to the next level directory: cd directory name
(14) the operation of the information written to a file or exported

Here Insert Picture Description
Here Insert Picture Description
Here Insert Picture Description

Published 200 original articles · won praise 99 · views 40000 +

Guess you like

Origin blog.csdn.net/weixin_43889841/article/details/103721826