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 or wild card file name in Files, generate all file names which correspond to the specification along with match to any extensions in FileExts and return an array FileList containing these file names and other names. IncludeDirName controls controls whether directory prefixes are included in expanded file names. Default is to always append directory name before expanded file name.
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
Returns MayaChemTools lib directory name by parsing INC values to extract MAYACHEMTOOLS/lib directory location: first entry in INC path should contain MayaChemTools lib location.
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 current directory for absent directory name in FullFileName. And FileExt is set to NULL string for FullFileName without any extension.
This function doesn't perform checking ragarding the presence of the directory FileDir and FullFileName and the FullFileName without any extension is assumed to be a file instead of a directory.
Copyright (C) 2019 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.