{
    "mode": "perldoc",
    "parameter": "File::Spec::Win32",
    "section": "",
    "url": "https://www.chedong.com/phpMan.php/perldoc/File%3A%3ASpec%3A%3AWin32/json",
    "generated": "2026-06-09T17:12:05Z",
    "synopsis": "require File::Spec::Win32; # Done internally by File::Spec if needed",
    "sections": {
        "NAME": {
            "content": "File::Spec::Win32 - methods for Win32 file specs\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "require File::Spec::Win32; # Done internally by File::Spec if needed\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "See File::Spec::Unix for a documentation of the methods provided there. This package overrides\nthe implementation of these methods, not the semantics.\n\ndevnull\nReturns a string representation of the null device.\n\ntmpdir\nReturns a string representation of the first existing directory from the following list:\n\n$ENV{TMPDIR}\n$ENV{TEMP}\n$ENV{TMP}\nSYS:/temp\nC:\\system\\temp\nC:/temp\n/tmp\n/\n\nThe SYS:/temp is preferred in Novell NetWare and the C:\\system\\temp for Symbian (the\nFile::Spec::Win32 is used also for those platforms).\n\nIf running under taint mode, and if the environment variables are tainted, they are not\nused.\n\ncasetolerant\nMSWin32 case-tolerance depends on GetVolumeInformation() $ouFsFlags == FSCASESENSITIVE,\nindicating the case significance when comparing file specifications. Since XP\nFSCASESENSITIVE is effectively disabled for the NT subsubsystem. See\n<http://cygwin.com/ml/cygwin/2007-07/msg00891.html> Default: 1\n\nfilenameisabsolute\nAs of right now, this returns 2 if the path is absolute with a volume, 1 if it's absolute\nwith no volume, 0 otherwise.\n\ncatfile\nConcatenate one or more directory names and a filename to form a complete path ending with a\nfilename\n\ncanonpath\nNo physical check on the filesystem, but a logical cleanup of a path. On UNIX eliminated\nsuccessive slashes and successive \"/.\". On Win32 makes\n\ndir1\\dir2\\dir3\\..\\..\\dir4 -> \\dir\\dir4 and even\ndir1\\dir2\\dir3\\...\\dir4   -> \\dir\\dir4\n\nsplitpath\n($volume,$directories,$file) = File::Spec->splitpath( $path );\n($volume,$directories,$file) = File::Spec->splitpath( $path,\n$nofile );\n\nSplits a path into volume, directory, and filename portions. Assumes that the last file is a\npath unless the path ends in '\\\\', '\\\\.', '\\\\..' or $nofile is true. On Win32 this means\nthat $nofile true makes this return ( $volume, $path, '' ).\n\nSeparators accepted are \\ and /.\n\nVolumes can be drive letters or UNC sharenames (\\\\server\\share).\n\nThe results can be passed to \"catpath\" to get back a path equivalent to (usually identical\nto) the original path.\n\nsplitdir\nThe opposite of catdir().\n\n@dirs = File::Spec->splitdir( $directories );\n\n$directories must be only the directory portion of the path on systems that have the concept\nof a volume or that have path syntax that differentiates files from directories.\n\nUnlike just splitting the directories on the separator, leading empty and trailing directory\nentries can be returned, because these are significant on some OSs. So,\n\nFile::Spec->splitdir( \"/a/b/c\" );\n\nYields:\n\n( '', 'a', 'b', '', 'c', '' )\n\ncatpath\nTakes volume, directory and file portions and returns an entire path. Under Unix, $volume is\nignored, and this is just like catfile(). On other OSs, the $volume become significant.\n",
            "subsections": [
                {
                    "name": "Note For File::Spec::Win32 Maintainers",
                    "content": "Novell NetWare inherits its File::Spec behaviour from File::Spec::Win32.\n"
                }
            ]
        },
        "COPYRIGHT": {
            "content": "Copyright (c) 2004,2007 by the Perl 5 Porters. All rights reserved.\n\nThis program is free software; you can redistribute it and/or modify it under the same terms as\nPerl itself.\n",
            "subsections": []
        },
        "SEE ALSO": {
            "content": "See File::Spec and File::Spec::Unix. This package overrides the implementation of these methods,\nnot the semantics.\n",
            "subsections": []
        }
    },
    "summary": "File::Spec::Win32 - methods for Win32 file specs",
    "flags": [],
    "examples": [],
    "see_also": []
}