fsl wrapper

Update of "mv semantics"
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview

Artifact ID: a8ab4b6366f158136fdd0f5024ef01a2a3b9b49c
Page Name:mv semantics
Date: 2012-02-17 06:17:40
Original User: kiatoa
Parent: 09c3b47fa471253bd00c3b53eb40813c0ee62aae
Content

Move semantics

Source

TargetAction
filenon-existingfsl_file2file
fileexisting fileerror
dirnon-existingfsl_dir2dir
direxisting-dirfsl_dir2dir targ/dir
  1. mv dir1 dir2 # dir2 NOT exists
          => dir2
  2. mv dir1 dir2 # dir2 exists
          => dir2/dir1
  3. mv f1 f2 # f2 not exists, otherwise error
          => f2
  4. mv f1 dir1 # dir1 exists
          => dir1/f1
  5. mv f1 dir1/f2 # dir1 may or may not exist, error if f2 exists
          => dir1/f2
  6. mv f1 dir1 ../f2 dir2/f3 dir3 # dir3 exists (error otherwise)
          => dir3/dir1 
             dir3/f2 
             dir3/dir2/f3