Mac-Carbon

 view release on metacpan or  search on metacpan

MoreFiles/MoreFilesSrc/FSpCompat.h  view on Meta::CPAN

		bdNamErr			-37		Bad filename	
		fnfErr				-43		Directory not found or incomplete pathname	
		wPrErr				-44		Hardware volume lock	
		vLckdErr			-46		Software volume lock	
		dupFNErr			-48		Duplicate filename and version	
		dirNFErrdirNFErr	-120	Directory not found or incomplete pathname	
		afpAccessDenied		-5000	User does not have the correct access	
		afpObjectTypeErr	-5025	A directory exists with that name	
*/

/*****************************************************************************/

pascal	OSErr	FSpDirCreateCompat(const FSSpec *spec,
								   ScriptCode scriptTag,
								   long *createdDirID);
/*	¦ Create a new directory.
	The FSpDirCreateCompat function creates a new directory and returns the
	directory ID of the newDirectory.
	
	spec			input:	An FSSpec record specifying the directory to
							create.
	scriptCode		input:	The code of the script system in which the
							directory name is to be displayed.
	createdDirID	output:	The directory ID of the directory that was
							created.
	
	Result Codes
		noErr				0		No error	
		dirFulErr			-33		File directory full	
		dskFulErr			-34		Disk is full	
		nsvErr				-35		No such volume	
		ioErr				-36		I/O error	
		bdNamErr			-37		Bad filename	
		fnfErr				-43		Directory not found or incomplete pathname	
		wPrErr				-44		Hardware volume lock	
		vLckdErr			-46		Software volume lock	
		dupFNErr			-48		Duplicate filename and version	
		dirNFErrdirNFErr	-120	Directory not found or incomplete pathname	
		wrgVolTypErr		-123	Not an HFS volume	
		afpAccessDenied		-5000	User does not have the correct access	
*/

/*****************************************************************************/

pascal	OSErr	FSpDeleteCompat(const FSSpec *spec);
/*	¦ Delete a file or directory.
	The FSpDeleteCompat function deletes a file or directory.
	
	spec			input:	An FSSpec record specifying the file or 
							directory to delete.
	
	Result Codes
		noErr				0		No error	
		nsvErr				-35		No such volume	
		ioErr				-36		I/O error	
		bdNamErr			-37		Bad filename	
		fnfErr				-43		File not found	
		wPrErr				-44		Hardware volume lock	
		fLckdErr			-45		File is locked	
		vLckdErr			-46		Software volume lock	
		fBsyErr				-47		File busy, directory not empty, or
									working directory control block open	
		dirNFErrdirNFErr	-120	Directory not found or incomplete pathname	
		afpAccessDenied		-5000	User does not have the correct access	
*/

/*****************************************************************************/

pascal	OSErr	FSpGetFInfoCompat(const FSSpec *spec,
								  FInfo *fndrInfo);
/*	¦ Get the finder information for a file.
	The FSpGetFInfoCompat function gets the finder information for a file.

	spec		input:	An FSSpec record specifying the file.
	fndrInfo	output:	If the object is a file, then its FInfo.
	
	Result Codes
		noErr				0		No error	
		nsvErr				-35		No such volume	
		ioErr				-36		I/O error	
		bdNamErr			-37		Bad filename	
		fnfErr				-43		File not found	
		paramErr			-50		No default volume	
		dirNFErrdirNFErr	-120	Directory not found or incomplete pathname	
		afpAccessDenied		-5000	User does not have the correct access	
		afpObjectTypeErr	-5025	Directory not found or incomplete pathname	
	
	__________
	
	Also see:	FSpGetDInfo
*/

/*****************************************************************************/

pascal	OSErr	FSpSetFInfoCompat(const FSSpec *spec,
								  const FInfo *fndrInfo);
/*	¦ Set the finder information for a file.
	The FSpSetFInfoCompat function sets the finder information for a file.

	spec		input:	An FSSpec record specifying the file.
	fndrInfo	input:	The FInfo.
	
	Result Codes
		noErr				0		No error	
		nsvErr				-35		No such volume	
		ioErr				-36		I/O error	
		bdNamErr			-37		Bad filename	
		fnfErr				-43		File not found	
		wPrErr				-44		Hardware volume lock	
		fLckdErr			-45		File is locked	
		vLckdErr			-46		Software volume lock	
		dirNFErrdirNFErr	-120	Directory not found or incomplete pathname	
		afpAccessDenied		-5000	User does not have the correct access	
		afpObjectTypeErr	-5025	Object was a directory	
	
	__________
	
	Also see:	FSpSetDInfo
*/

/*****************************************************************************/



( run in 1.975 second using v1.01-cache-2.11-cpan-6aa56a78535 )