WinFile versus FilesAndDirs
In order to make the move from WinFiles to FilesAndDirs as smooth as possible this page compares the two classes.
(Almost) unchanged functions
Remarks |
||
Cd |
Cd |
|
CheckPath |
CheckPath |
|
CopyToWithRC |
CopyTo |
|
Delete |
DeleteFile |
|
Dir, DirTree, DirX |
Dir |
Syntax change |
DoesExist |
Exists |
|
DoesExistDir |
IsDir |
|
DoesExistFile |
IsFile |
|
ExpandPath |
Normalize |
Check syntax; see also EnforceBackSlash |
GetTempFileName |
GetTempFilename |
Notice change in spelling |
GetTempPath |
GetTempPath |
|
ListDirsOnly |
ListDirs |
|
ListFilesOnly |
ListFiles |
|
MkDir |
MkDir |
|
MoveToWithRC |
MoveTo |
|
PWD |
PWD |
|
PolishCurrentDir |
PolishCurrentDir |
|
RmDir |
RmDir |
"Recursive" is now the default |
Functions added to FilesAndDirs
Function name |
Remarks |
GetNewLineCharsFor |
Operating system dependent |
IsSymbolicLink |
Completes IsDir and IsFile |
CopyTree |
Copy directory with all its contents |
MoveTree |
Move directory with all its contents |
Removed functions
Remarks |
|
CopyTo |
Signalled errors. |
CreateDirParms |
|
CreateDirXParms |
|
CreateListFilesOnlyParms |
|
DateOf |
|
DirTree |
|
ExpandEnv |
Never belonged to WinFile |
GetAllDrives |
Never belonged to WinFile |
GetDriveAndType |
Never belonged to WinFile |
HasSubDirs |
|
IsDirEmpty |
|
IsFilenameOkay |
|
IsFoldernameOkay |
|
IsValidWin32Filename |
|
ListDirXIndices |
|
ListFileAttributes |
|
MoveTo |
Signalled errors |
ReadAnsiFile |
|
ReadBytesAs8BitSignedIntegersFromFile |
See ⎕NGET |
WriteAnsiFile |
See ⎕NPUT |
YoungerThan |
|