![]() |
FileUtil
use FileUtil;
use FileUtil qw(:all);
FileUtil module provides the following functions:
CheckFileType, ConvertCygwinPath, ExpandFileNames, FileModificationTimeAndDate , FileSize, FormatFileSize, FormattedFileModificationTimeAndDate , GetMayaChemToolsLibDirName, GetUsageFromPod, ParseFileName
Based on FileExts, decides type of FileName and return 1 or 0
Check to see whether Path contains any Cygwin drive specification and convert it into Windows path
For each directory name in Files, generate all file names which correspond to extensions in FileExts and return an array FileList containing these file names
Returns a formatted time and date string corresponding to FileName modification time
Returns file modification time and date values for specified FileName
Formats the file size in bytes to human readable value and returns a formatted file size string
Returns size of FileName in bytes
Generates a ScriptUsage string from pod documentation in the script file using pod2text or perdoc.bat Perl utitities
Splits FullFileName into directory name, file name, and extension. FileDir is set to NULL for absent directory name in FullFileName
Copyright (C) 2004-2008 Manish Sud. All rights reserved.
This file is part of MayaChemTools.
MayaChemTools is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.