Data for the year "external" and "internal" two folder classification, and then compressed into "internal." RAR "and" external. RAR Two compressed Package archive retention, two packages have more than 10 GB size. In order to free up the hard disk space, Xiao Wang deleted both folders on the hard drive, and the backup package was saved in a large-capacity removable hard drive.
In a use of the process, open the package only to find that there are some
First, briefZip is used to compress and decompress files. The classes used are: ZipEntry ZipoutputstreamSecond, the specific implementation of the CodePackage Com.joyplus.test;import Java.io.file;import java.io.fileinputstream;import Java.io.filenotfoundexception;import Java.io.fileoutputstream;import Java.io.ioexception;import Java.io.inputstream;import Java.util.arraylist;import Java.util.list;import Java.util.zip.zipentry;import Java.util.zip.ZipOutputStream;/** * @author * compress all files
My work computer has been updated to Windows 10 for some time, during this period of use I have experienced the convenience of the new Windows Chinese document management, then I will share my experience and experience:Directory:
Quick access
File filter and File grouping
Common folders pinned to the start screen
Conclusion: Do you use these featur
Very common situation: I want to sync//usr/boot/, but do not want to copy/proc/tmp these folders
If you want to avoid a path directly add –exclude
Like –exclude "Proc."
–exclude ' Sources '
Note:the directory path is relative to the folder and you are are backing up.
Note: This path must be a relative path, not an absolute pathExample: The source server/home/yjwan/bashshell has a checkout folder
[Root@centos5-4 bashshell]# Ls-dl Checkout
Drwxr-
File system: Accessing folders and files, searching for local files via Aqs
Introduced
Re-imagine the Windows 8 Store Apps File system
File access-access folders and files, and get various properties of files
Folder Access-some special actions when traversing
-----provide ad\exchange\lync\sharepoint\crm\sc\o365 and other Microsoft product implementation and outsourcing, qq:185426445. Phone 18666943750Requirements: The server used several years down, found that our disk has a number of similar folders, we would like to merge this folder into a specified folder, and delete other unused folders.Step 1, we open our server, D disk under the 5 years of Information Summary folder, some of the files are the same,
-------------1rwxrw-r-- 7 6 43 groups, rwx permissions corresponding to 421 add 7,rw-corresponding 42 Add the 6,r--corresponding to 4 (drwxrw-r--here the first character d for the folder;-rwxrw-r-- Here the first character-represents a normal file) 6, So let's see what the above 755 represents. 7 corresponds to 4+2+1 rwx5 corresponding 4+1 R-x then the permission of this file is the owner rwx, g
PackageCom.xiwi;ImportJava.io.*;ImportJava.util.*;classfile{ Public Static voidMain (String args[]) {System.out.println ("File Go ..."); //change this to the directory path you want to traverse.Recursivefiles ("F:\\filetext"); System.out.println ("File End."); } /*** Xiwi * Traverse files/Folders-functions * [String]path f
1. Determine if files and folders exist and createImport OS #os. Path.exists (Dir_path/file_path) determine if the content exists >>>os.path.exists ('/home/mologa ') true# Os.path.isfile (File_path) determines whether a file exists and is a file type >>>os.path.isfile ('/home/mologa/a.log ') False#os.path.isdir (dir _path) determine if the folder exists >>>os.pat
In other words, Windows Server 2003 SP1 can get a plugin from Microsoft to get such a practical feature: Let the user have no access to the shared folder stealth, This ensures a certain degree of information security the file server's shared files are so numerous that users waste time looking for their own folders. Ink too much, hehe forgot to say, this plug-in is the Abe plug-in, but it is in English,
Sin
1 thumbnail mode
Thumbnail display is suitable for viewing images and video files and folders that contain images and video files. Viewed in this way, the image file is displayed in a smaller figure, and the video file displays the first frame image of the file.
2. Tile Way
The tile display will be displ
ASP tutorial. NET C # File operations (append, copy, delete, move file, create directory, recursively delete folder and file)C # Append, copy, delete, move files, create directories, recursively delete folders and files, assign all content under a folder to the target folder, Detele all content under the specified fold
Problem: Change the ing_ in the picture name to 0.Current directory: $ lspic,change_name.shpic/|__kk1/|__img_001.jpg|__img_002.jpg|__vv2/|__img_005.jpg|__abc_002.jpgSolve:Write the following in change_name.sh:#!/usr/bin/env SHCD picDir= ' ls. 'For dir in ${dir};d ofi [-D ${dir}];thenCD $dirRename ' s/img_/0/' *.jpgCd..FiDoneRun: Sh change_name.shResults:pic/|__kk1/|__0001.jpg|__0002.jpg|__vv2/|__0005.jpg|__abc_002.jpgThe shell traverses multiple folders
If you use it, record it, lest you forget it.
1, DF-SGDescription: View the usage of each partition2, du/local/notesdata/| Sort-nr | MoreDescription: The space consumption of all directories under the/local/notesdata folder is reduced by the size of the occupied space3, du-a/local/notesdata/| Sort-nr | MoreDescription: The space consumption of all directories and files under the/local/notesdata folder is reduced by the size of the occupied spaceUse DU-SG to see the size of the current folder (in
the difference is that it performs this operation by displaying and modifying the access control list (ACL) of the file. After the "/g" parameter, in addition to retaining the original perm permission, the spec (special access permission) option is added, and the "/deny command is added, the program will stop responding and wait for the correct answer to be entered. After "/yundun" is introduced, this confirmation can be obtained. In this case, we ca
In the project, it is sometimes necessary to get all the files or folders under the folder, as well as the corresponding last modified time. The following code implements the iteration to read the file under the specified path, and the modification time can be added to the LastModified () method by itself. Public class Folder { Public Static void Main(string[] args) {String path="f:/111"; ReadFile (
($FILEURL,$AIMURL,$overWrite=false) { if(!file_exists($FILEURL)) { returnfalse; } if(file_exists($AIMURL) $overWrite==false) { returnfalse; } ElseIf(file_exists($AIMURL) $overWrite==true) {Fileutil:: Unlinkfile ($AIMURL); } $aimDir=dirname($AIMURL); Fileutil:: Createdir ($aimDir); Copy($FILEURL,$AIMURL); returntrue; }}?>
Another way to call:
$fu New fileutil (); $fu->copyfile (' A/1/2/3 ', ' A/1/2/4 ');
Recommend a free time development of the web
This article explains the basic operations of Java files, including Java to create files and folders, Java delete files, Java to get all the files of the specified directory, Java to determine whether the specified path is a directory, and the Java search for the entire contents of the specified directory. Take a look at the example below.Create a fileThe two constants of File (File.separator, File.pathsepa
Create and delete files and folders in the java file operation.
This article describes the basic operations of java files, this includes creating files and folders in java, deleting files in java, obtaining all files in a specified directory in java, determining whether a specified path is a directory in java, and searching for all content in a specified director
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.